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

Error - Role with name AWSAFTExecution already exists #529

Open
laureano-droid opened this issue Feb 11, 2025 · 0 comments
Open

Error - Role with name AWSAFTExecution already exists #529

laureano-droid opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working pending investigation Issue needs further investigation

Comments

@laureano-droid
Copy link

Terraform Version & Prov:

AFT Version:
1.13.3

Terraform version
Terraform v1.10.5

Bug Description
The error occurs because there's an attempt to create an IAM role named "AWSAFTService" that already exists in the account. The AWSAFTService role was not created previously, I tried to delete it when I first noticed the error, but deleting it didn´t change anything.

Steps to reproduce the behavior:
Nothing outside the basic configuration, just the terraform plan and then terraform apply using the repository with any changes.

Related Logs
Code error:
Error: creating IAM Role (AWSAFTService): operation error IAM: CreateRole, https response error StatusCode: 409, RequestID: b3b78412-dc8b-4bf2-b549-05389e48a643, EntityAlreadyExists: Role with name AWSAFTService already exists.

│ with module.aft_iam_roles.module.ct_management_service_role.aws_iam_role.role,
│ on modules\aft-iam-roles\service-role\main.tf line 28, in resource "aws_iam_role" "role":
│ 28: resource "aws_iam_role" "role" {

@laureano-droid laureano-droid added bug Something isn't working pending investigation Issue needs further investigation labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending investigation Issue needs further investigation
Projects
None yet
Development

No branches or pull requests

1 participant