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

"aws_quicksight_user" resource doesn't allow custom namespace #21166

Closed
YuriGal opened this issue Oct 5, 2021 · 5 comments · Fixed by #23607
Closed

"aws_quicksight_user" resource doesn't allow custom namespace #21166

YuriGal opened this issue Oct 5, 2021 · 5 comments · Fixed by #23607
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/quicksight Issues and PRs that pertain to the quicksight service.
Milestone

Comments

@YuriGal
Copy link

YuriGal commented Oct 5, 2021

Terraform CLI and Terraform AWS Provider Version

Terraform v1.0.8
on darwin_amd64
provider registry.terraform.io/hashicorp/aws v3.60.0

Affected Resource(s)

  • aws_quicksight_user

Terraform Configuration Files

resource "aws_quicksight_user" "author" {
  email         = "email@example.com"
  identity_type = "IAM"
  user_role     = "AUTHOR"
  iam_arn       = aws_iam_user.user.arn
  namespace     = "NewOrg"
  provider      = aws.us-east-1
}

Expected Behavior

User should be created in the namespace "NewOrg"

Actual Behavior

Error message: "expected namespace to be one of [default], got NewOrg"

Steps to Reproduce

Just try to create a quicksight user in any namespace besides default.

AWS API (i.e. CLI aws quicksight register-user --namespace) does support registering user in a different namespace. Could you make this available in the provider as well?

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/quicksight Issues and PRs that pertain to the quicksight service. labels Oct 5, 2021
@justinretzolk
Copy link
Member

Hey @YuriGal 👋 Thank you for taking the time to file this issue. I took a look over the relevant CLI, API, and Go SDK documents for this, and it looks like this is a limitation of the underlying API. In each of the linked documents, it has a similar note for namespace:

The namespace. Currently, you should set this to default.

Since this is a limitation of the API, I'm going to close this issue for now. If this becomes available in the API at a later date, we can look into adding the functionality to the provider.

@github-actions github-actions bot removed the needs-triage Waiting for first response or review from a maintainer. label Oct 5, 2021
@YuriGal
Copy link
Author

YuriGal commented Oct 5, 2021

@justinretzolk thanks for getting back to me! I thought it was API limitation too (looking at these docs), but then I followed this guide in my research and it does use following CLI command:

aws quicksight register-user --aws-account-id $AAI --namespace Customer1 --identity-type IAM --iam-arn arn:aws:iam::$AAI:user/Customer1-Author1 --user-role AUTHOR --email Customer1-Author1@quicksightadminworkshop.com --region $IR

It uses custom namespace - and I tried it - and it does work.

@justinretzolk
Copy link
Member

Hey @YuriGal; thanks so much for that update. With that in mind, I'm going to reopen this so that we can look into it a bit more when time permits.

@justinretzolk justinretzolk reopened this Oct 6, 2021
@justinretzolk justinretzolk added the enhancement Requests to existing resources that expand the functionality or scope. label Oct 6, 2021
@github-actions github-actions bot added this to the v4.6.0 milestone Mar 15, 2022
@github-actions
Copy link

This functionality has been released in v4.6.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 May 7, 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 May 7, 2022
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/quicksight Issues and PRs that pertain to the quicksight service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants