Troubleshooting with Terraform
Learn about possible errors that might come up.
We'll cover the following...
EntityAlreadyExists
error
The EntityAlreadyExists
error might come up after applying a definition. Possible causes for this could be:
- Duplication of entities.
- Incomplete execution of code.
- Not destroying already created resources.
To resolve this error, we’ll follow this script.
Press + to interact
aws iam list-attached-role-policies --role-name [rollname...]aws iam detach-role-policy --role-name [rollname...] --policy-arn [policy arn...]aws iam delete-role --role-name [rollname...]
Note: Replace
[rolename ...]
with the role name of the ...