aws
conflict_error
ai_generated
true
An error occurred (ResourceAlreadyExistsException)
ID: aws/resource-already-exists
92%Fix Rate
92%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
AWS resource with that name already exists. Use existing or choose different name.
genericWorkarounds
-
92% success Use the existing resource — describe/get it to verify it matches your needs
Use the existing resource — describe/get it to verify it matches your needs
Sources: https://docs.aws.amazon.com/general/latest/gr/error-responses.html
-
88% success For IaC (Terraform/CloudFormation), import the existing resource into your state
terraform import aws_s3_bucket.example my-bucket
Sources: https://developer.hashicorp.com/terraform/cli/commands/import
-
85% success Use data sources to reference existing resources instead of creating new ones
Use data sources to reference existing resources instead of creating new ones
Sources: https://docs.aws.amazon.com/general/latest/gr/error-responses.html
Dead Ends
Common approaches that don't work:
-
Delete and recreate the resource
75% fail
May lose data, configurations, or dependent resources
-
Add a random suffix to the name
60% fail
Makes resource names unpredictable and hard to manage
Error Chain
Frequently confused with: