Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: IAM Roles Anywhere CreateProfileInput.RoleArns missing #39102

Closed
gclawes opened this issue Aug 30, 2024 · 6 comments · Fixed by #39108
Closed

[Bug]: IAM Roles Anywhere CreateProfileInput.RoleArns missing #39102

gclawes opened this issue Aug 30, 2024 · 6 comments · Fixed by #39108
Labels
bug Addresses a defect in current functionality. service/rolesanywhere Issues and PRs that pertain to the rolesanywhere service.
Milestone

Comments

@gclawes
Copy link

gclawes commented Aug 30, 2024

Terraform Core Version

1.4.6

AWS Provider Version

5.65.0

Affected Resource(s)

  • aws_rolesanywhere_profile

Expected Behavior

Creating a profile with an empty list of role_arns should result in a profile being created.

According to CreateProfile API docs, roleArns is a required filed that can be an empty array: https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateProfile.html#rolesanywhere-CreateProfile-request-roleArns

Actual Behavior

Profile fails to create due to an API validation error (see below).

Relevant Error/Panic Output Snippet

│ Error: creating RolesAnywhere Profile (iam-ra-test-us-east-1): operation error RolesAnywhere: CreateProfile, 1 validation error(s) found.
│ - missing required field, CreateProfileInput.RoleArns.
│
│
│   with aws_rolesanywhere_profile.iam-ra-test-us-east-1,
│   on iam-ra-test.tf line 142, in resource "aws_rolesanywhere_profile" "iam-ra-test-us-east-1":
│  142: resource "aws_rolesanywhere_profile" "iam-ra-test-us-east-1" {

Terraform Configuration Files

Example profile:

resource "aws_rolesanywhere_profile" "iam-ra-test-us-east-1" {
  provider = aws.local

  tags = local.tags

  enabled = true
  name    = "iam-ra-test-us-east-1"

  role_arns = []
}

Steps to Reproduce

  1. Attempt to deploy a simple profile (example above) with empty list role_arns = []

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@gclawes gclawes added the bug Addresses a defect in current functionality. label Aug 30, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/rolesanywhere Issues and PRs that pertain to the rolesanywhere service. needs-triage Waiting for first response or review from a maintainer. labels Aug 30, 2024
@DanielRieske
Copy link
Contributor

Hi @gclawes 👋, thank you for raising this issue I can indeed reproduce this behaviour, I was working on some technical debt within this service so I will gladly solve this issue alongside it.

Will add the PR later today.

@gclawes
Copy link
Author

gclawes commented Aug 31, 2024

Thanks. I discovered this while re-testing an established deployment procedure, so I know this used to work correctly.

DanielRieske added a commit to DanielRieske/terraform-provider-aws that referenced this issue Sep 1, 2024
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Sep 3, 2024
Copy link

github-actions bot commented Sep 3, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.66.0 milestone Sep 3, 2024
Copy link

github-actions bot commented Sep 5, 2024

This functionality has been released in v5.66.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Oct 6, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/rolesanywhere Issues and PRs that pertain to the rolesanywhere service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants