- Newest
- Most votes
- Most comments
Hi
I see that you are facing errors while deleting service linked role AWSServiceRoleForApplicationAutoScaling_DynamoDBTable.
As we can see in the error "table/Person/index/id-index” is still using the role. You can delete a service-linked role only after first deleting the related scalable resources.
You should deregister the scalable target “table/Person/index/id-index” [1] and also delete the scaling polices[2]
After clearing all the dependencies you can the delete the service-linked role in concern.
Please refer https://docs.aws.amazon.com/autoscaling/plans/userguide/aws-auto-scaling-service-linked-roles.html#delete-service-linked-role for more information.
Update the thread if you continue to face any issues.
[1] https://docs.aws.amazon.com/cli/latest/reference/application-autoscaling/deregister-scalable-target.html
[2] https://docs.aws.amazon.com/cli/latest/reference/application-autoscaling/delete-scaling-policy.html
Yes, that was exactly the point! The autoscaling policy for the index in question was still here despite the table was deleted.
According to the links you provided and using the CLI to delete the corresponding autoscaling resources, I can now get rid of the role.
Thanks
Hello,
We are facing a similar issue, but IAM won't give away the name of the resources still in use. Cloudtrail also does not seem to be helpful in identifying those resources.
This is on the back of tearing down a CDK stack that involved a global DynamoDB table.
Thank you very much in advance!
Relevant content
- asked 12 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago