hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.17k forks source link

[Docs]: This is not clear how to create description for the key #39294

Open EugenKon opened 2 months ago

EugenKon commented 2 months ago

Documentation Link

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user; https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key

Description

image image

The next configuration fails with the error below:

resource "aws_iam_user" "ses-smtp" {
  name          = "ses-smtp-${aws_route53_zone.xxx.name}"
  force_destroy = false
  tags = {
    "${aws_iam_access_key.ses-smtp-key.id}" = "Send emails from @ion.com domain"
  }
}

resource "aws_iam_access_key" "ses-smtp-key" {
  user = aws_iam_user.ses-smtp.name
}
╷
│ Error: Cycle: aws_iam_access_key.ses-smtp-key, aws_iam_user.ses-smtp
│

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue