{"action":"opened","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/1803","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/1803/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/1803/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/1803/events","html_url":"https://github.com/serverless/serverless/issues/1803","id":170149645,"number":1803,"title":"[Critical Bug] Tables cannot be updated after creation","user":{"login":"codepreneur","id":3421858,"avatar_url":"https://avatars.githubusercontent.com/u/3421858?v=3","gravatar_id":"","url":"https://api.github.com/users/codepreneur","html_url":"https://github.com/codepreneur","followers_url":"https://api.github.com/users/codepreneur/followers","following_url":"https://api.github.com/users/codepreneur/following{/other_user}","gists_url":"https://api.github.com/users/codepreneur/gists{/gist_id}","starred_url":"https://api.github.com/users/codepreneur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codepreneur/subscriptions","organizations_url":"https://api.github.com/users/codepreneur/orgs","repos_url":"https://api.github.com/users/codepreneur/repos","events_url":"https://api.github.com/users/codepreneur/events{/privacy}","received_events_url":"https://api.github.com/users/codepreneur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T12:06:25Z","updated_at":"2016-08-09T12:06:25Z","closed_at":null,"body":"##### Serverless Framework Version: \r\n\r\n```\r\n1.0.0-beta.1\r\n```\r\n\r\nWell to be more accurate I am on `master` and this commit: `d1942f4937a85823f6f7deb9094bd32a4acdea`\r\n\r\n##### Operating System: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/16957931/5fe5d11e-4dd6-11e6-9d95-a5734cdee160.png)\r\n\r\n##### Expected Behavior:\r\n\r\nTable to update in aws console\r\n\r\n##### Actual Behavior:\r\n\r\n\r\nI deployed first like so:\r\n\r\n```\r\nresources:\r\n  Resources: \r\n\r\n    VideosDynamo: \r\n      Type: AWS::DynamoDB::Table\r\n      DeletionPolicy: Retain\r\n      Properties: \r\n        AttributeDefinitions: \r\n          - \r\n            AttributeName: id\r\n            AttributeType: S\r\n        KeySchema: \r\n          - \r\n            AttributeName: id\r\n            KeyType: HASH\r\n        ProvisionedThroughput: \r\n          ReadCapacityUnits: 1\r\n          WriteCapacityUnits: 1\r\n        TableName: ${service}-videos-${stage}\r\n\r\n```\r\nthen changed it like so\r\n```\r\nresources:\r\n  Resources: \r\n\r\n    VideosDynamo: \r\n      Type: AWS::DynamoDB::Table\r\n      DeletionPolicy: Retain\r\n      Properties: \r\n        AttributeDefinitions: \r\n          - \r\n            AttributeName: id\r\n            AttributeType: S\r\n          - \r\n            AttributeName: content_provider_id\r\n            AttributeType: S\r\n        KeySchema: \r\n          - \r\n            AttributeName: id\r\n            KeyType: HASH\r\n          - \r\n            AttributeName: content_provider_id\r\n            KeyType: RANGE\r\n        ProvisionedThroughput: \r\n          ReadCapacityUnits: 20\r\n          WriteCapacityUnits: 20\r\n        TableName: ${service}-videos-${stage}\r\n\r\n```\r\n\r\nto get the following error below:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/17515644/7a9714bc-5e31-11e6-8b0b-d2ea04723f7e.png)\r\n\r\nThis should work, because:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/17515730/106086d6-5e32-11e6-8c26-3a88a2164f49.png)\r\n\r\n\r\n @pmuens ? @eahefnawy ? @wedgybo ?\r\n"}}
{"actor":{"display_login":"codepreneur"}}