Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment failing with dynamodb table already exists #153

Open
billgeo opened this issue Feb 2, 2022 · 1 comment
Open

Deployment failing with dynamodb table already exists #153

billgeo opened this issue Feb 2, 2022 · 1 comment

Comments

@billgeo
Copy link
Contributor

billgeo commented Feb 2, 2022

See deployment log here https://github.com/linz/qgis-plugin-repository/runs/5031052799?check_suite_focus=true#step:8:27

Serverless: Operation failed!
Serverless: View the full error output: https://ap-southeast-2.console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stack/detail?stackId=arn%3Aaws%3Acloudformation%3Aap-southeast-2%3A***%3Astack%2Fqgis-plugin-repo-dev%2F77f7c2b0-127d-11eb-892a-02f23dfeffce
 
  Serverless Error ---------------------------------------
 
  An error occurred: PluginsDynamoDBTable - qgis-plugin-repo-*** already exists.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com
 
  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              12.22.9
     Framework Version:         1.67.1
     Plugin Version:            3.6.5
     SDK Version:               2.3.0
     Components Version:        2.28.0
 
Error: Process completed with exit code 1.

Cloud Formation:

    PluginsDynamoDBTable:
      Type: 'AWS::DynamoDB::Table'
      DeletionPolicy: Retain
      Properties:
        TableName: ${self:provider.environment.PLUGINS_TABLE_NAME}
        AttributeDefinitions:
          - AttributeName: id
            AttributeType: S
          - AttributeName: item_version
            AttributeType: S
        KeySchema:
          - AttributeName: id
            KeyType: HASH
          - AttributeName: item_version
            KeyType: RANGE
        BillingMode: PAY_PER_REQUEST

According to the AWS documentation if a table name is specified in Cloudformation then it can't be updated/replaced without giving it a new name. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html

@SPlanzer
Copy link
Contributor

Started to look into this but quickly blocked by #157 that makes dev deployment difficult

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants