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

dynamodb already exists #36

Open
eladhaz05 opened this issue Dec 6, 2017 · 2 comments
Open

dynamodb already exists #36

eladhaz05 opened this issue Dec 6, 2017 · 2 comments

Comments

@eladhaz05
Copy link

I have a bug when i deploy i got this error:
...:WriteCapacityUnits|dynamodb already exists

I do not understand why i got it.
Thank for the help

@bencodner
Copy link

bencodner commented Jan 19, 2018

This isn't a problem with the plugin. The issue is a case of having orphaned configurations in AWS. Not all resources show up in the console (ec2 instance roles are only viewable via the cli). If you run the following commands, you should see the orphaned configs:
aws application-autoscaling describe-scalable-targets --service-namespace dynamodb --region 'your-region'
aws application-autoscaling describe-scaling-policies --service-namespace dynamodb --region 'your-region'

You should be able to use this command to remove them:
aws application-autoscaling deregister-scalable-target --service-namespace dynamodb --resource-id 'your-resource-id' --scalable-dimension 'your-scalable-dimension' --region 'your-region'

One thing to note - I ended up with this issue because my deployment user lacked many application-autoscaling permissions

@094459
Copy link

094459 commented Oct 1, 2020

This comment helped me. I am not using dynamodb, but Aurora rds and got the same issue in my CDK app. Using these commands I was able to remove/de-register the policies and all good. Thanks!

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

No branches or pull requests

3 participants