terraform-aws-autoscaling
terraform-aws-autoscaling copied to clipboard
The IAM profile is not being set on the EC2 instance
Description
The IAM profile is not being set on the EC2 instance.
create_iam_instance_profile = false
iam_instance_profile_arn = "arn:aws:iam::ACCT:role/role_name_here"
⚠️ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
- Re-initialize the project root to pull down modules:
terraform init
- Re-attempt your terraform plan or apply and check if the issue still persists
Versions
-
Module version [Required]:
-
Terraform version: 1.7.4
- Provider version(s): 7.3.1
Reproduction Code [Required]
create_iam_instance_profile = false
iam_instance_profile_arn = "arn:aws:iam::ACCT:role/role_name_here"
Steps to reproduce the behavior:
Terraform Cloud workspacesExpected behavior
The newly created EC2 from the ASG should use the existing iam arn.
Actual behavior
No IAM role is set.