terraform-aws-modules / terraform-aws-autoscaling

Terraform module to create AWS Auto Scaling resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws
Apache License 2.0
292 stars 558 forks source link

The IAM profile is not being set on the EC2 instance #257

Closed monelgordillo closed 5 months ago

monelgordillo commented 7 months ago

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

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

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 5 months ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 4 months 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.