terraform-aws-autoscaling icon indicating copy to clipboard operation
terraform-aws-autoscaling copied to clipboard

The IAM profile is not being set on the EC2 instance

Open monelgordillo opened this issue 11 months ago • 0 comments

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:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. 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 workspaces

Expected behavior

The newly created EC2 from the ASG should use the existing iam arn.

Actual behavior

No IAM role is set.

Terminal Output Screenshot(s)

image

Additional context

monelgordillo avatar Feb 29 '24 16:02 monelgordillo