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]: Fix typo and type string to bool for rolesanywhere #26872

Closed
cjsrkd3321 opened this issue Sep 20, 2022 · 4 comments · Fixed by #26858
Closed

[Bug]: Fix typo and type string to bool for rolesanywhere #26872

cjsrkd3321 opened this issue Sep 20, 2022 · 4 comments · Fixed by #26858
Labels
bug Addresses a defect in current functionality. service/rolesanywhere Issues and PRs that pertain to the rolesanywhere service.
Milestone

Comments

@cjsrkd3321
Copy link
Contributor

Terraform Core Version

1.2.4

AWS Provider Version

4.31.0

Affected Resource(s)

  • aws_rolesanywhere_profile
  • aws_rolesanywhere_trust_anchor

Expected Behavior

Create and Delete well normally

Actual Behavior

  • updating RolesAnywhere Profile (a5a0ad19-2e65-4748-b1e7-ffdca03dd80e): operation error RolesAnywhere: UpdateProfile, https response error StatusCode: 400, RequestID: 99910955-f1a7-47f1-9d91-8ad4ad2b7d0f, ValidationException: 1 validation error detected: Value 'SESSION_POLICY' at 'name' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[ a-zA-Z0-9-_]*$

  • aws_rolesanywhere_trust_anchor and aws_rolesanywhere_profile does not applied(when update) to enabled for true

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_rolesanywhere_trust_anchor" "this" {
  name    = "${var.env}-${var.account}-${var.region_code}-trust-anchor"
  enabled = true
  source {
    source_data {
      x509_certificate_data = <<EOT
CERTIFICATE_BUNDLE
EOT
    }
    source_type = "CERTIFICATE_BUNDLE"
  }
}

resource "aws_rolesanywhere_profile" "this" {
  name      = "${var.env}-${var.account}-${var.region_code}-rolesanywhere-profile"
  enabled   = true
  role_arns = ["arn:aws:iam::123412341234:role/test-role"]
  session_policy = jsonencode({
    Version = "2012-10-17"
    Statement = [{
      Action   = "*"
      Effect   = "Allow"
      Resource = "*"
    }]
  })
}

Steps to Reproduce

When you normally use

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

Yes

@cjsrkd3321 cjsrkd3321 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Sep 20, 2022
@cjsrkd3321 cjsrkd3321 changed the title [Bug]: Fix typo and type string to bool [Bug]: Fix typo and type string to bool for rolesanywhere Sep 20, 2022
@github-actions github-actions bot added service/rolesanywhere Issues and PRs that pertain to the rolesanywhere service. and removed bug Addresses a defect in current functionality. labels Sep 20, 2022
@github-actions
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.

@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 20, 2022
@cjsrkd3321
Copy link
Contributor Author

@justinretzolk
Our company already use this resource now. So, we imported existing resources, update resource but not working 🥲.
If there are specific issues or problems, you can close this PR and push your contents please.
I just wanna using this resource well. Thank you.

@github-actions github-actions bot added this to the v4.34.0 milestone Sep 30, 2022
@github-actions
Copy link

github-actions bot commented Oct 6, 2022

This functionality has been released in v4.34.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!

@github-actions
Copy link

github-actions bot commented Nov 6, 2022

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 Nov 6, 2022
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.

2 participants