aws_iam_user_login_profile Automatically Imports Existing Infrastructure During Resource Creation #7536
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Milestone
Community Note
Affected Resource(s)
aws_iam_user_login_profile
Terraform Configuration Files
Expected Behavior
If the IAM User already exists and has an existing Login Profile, Terraform should error during resource creation and require
terraform import
.Actual Behavior
Terraform silently assumes management of existing IAM User Login Profile during resource creation.
Steps to Reproduce
terraform apply
above configuration with no existing stateImportant Factoids
Requiring resource import is a general design tenet of Terraform to ensure operators understand existing infrastructure and to deter attempting to manage the same infrastructure in two places.
The text was updated successfully, but these errors were encountered: