terraform-aws-modules / terraform-aws-iam

Terraform module to create AWS IAM resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/iam/aws
Apache License 2.0
779 stars 985 forks source link

Unable to disable the IAM user console access #477

Closed asitoke-cs closed 5 months ago

asitoke-cs commented 5 months ago

Hello,

I am trying to create a IAM user without enabling the console access for it, but IAM user is getting created with console access enabled. Inspite of setting the parameter 'create_iam_user_login_profile' to false the plan is showing that it will add the 'aws_iam_user_login_profile.this'.

I have tried to disable the IAM console access from AWS console, but in plan it shows it be created:

Terraform will perform the following actions:

module.iam_user["XXX_service_user"].aws_iam_user_login_profile.this[0] will be created

Please note that I have set the 'create_iam_user_login_profile = false'

not sure if I am missing something here, or if it is a bug

asitoke-cs commented 5 months ago

Working fine

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.