hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io
Other
42.8k stars 9.56k forks source link

aws_iam_role halts when role exists #20394

Closed k7faq closed 5 years ago

k7faq commented 5 years ago

Terraform Version

TF version 0.11.11

Terraform Configuration Files

resource "aws_iam_role" "flow_logs" {
  name               = "AmazonVPCFlowLogs"
  assume_role_policy = "${file("${path.module}/policies/vpc-flow-logs-assume-policy.json")}"
}

Debug Output

Crash Output

Expected Behavior

Actual Behavior

* aws_iam_role.flow_logs: 1 error(s) occurred:

* aws_iam_role.flow_logs: Error creating IAM Role AmazonVPCFlowLogs: EntityAlreadyExists: Role with name AmazonVPCFlowLogs already exists.

Steps to Reproduce

  1. terraform init
  2. terraform apply

    Additional Context

References

ghost commented 5 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-aws#7616 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-aws#7616.

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.