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

iam_user: permissions_boundary attribute should accept empty string as absent value #5858

Closed
mgarstecki opened this issue Sep 12, 2018 · 3 comments · Fixed by #5859
Closed
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/iam Issues and PRs that pertain to the iam service.
Milestone

Comments

@mgarstecki
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Same as #5546, which was for roles : accepting an empty string would allow designing modules that take a permissions boundary as optional input.

PR in progress.

New or Affected Resource(s)

  • aws_iam_user

Potential Terraform Configuration

variable "permissions_boundary_arn" {
  default = ""
}

resource "aws_iam_user" "test-user" {
  name = "mat-test-user-boundary"
  permissions_boundary = "${var.permissions_boundary_arn}"
}

The above topology fails for the default value of permissions_boundary_arn, making it hard to design a module that fits both privileged users (who don't need to provide a boundary) and limited ones (who need to provide one).

References

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/iam Issues and PRs that pertain to the iam service. labels Sep 13, 2018
@bflad bflad added this to the v1.36.0 milestone Sep 13, 2018
@bflad
Copy link
Contributor

bflad commented Sep 13, 2018

This has been merged into master and will release with version 1.36.0 of the AWS provider, likely very shortly. 👍

@bflad
Copy link
Contributor

bflad commented Sep 13, 2018

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

@ghost
Copy link

ghost commented Apr 3, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/iam Issues and PRs that pertain to the iam service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants