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]: Can't configure a value for "verified_access_trust_providers": its value will be decided automatically based on the result of applying this configuration. #33676

Closed
antonisnyc94 opened this issue Sep 28, 2023 · 3 comments · Fixed by #33734
Labels
bug Addresses a defect in current functionality. service/verifiedaccess Issues and PRs that pertain to the verifiedaccess service.
Milestone

Comments

@antonisnyc94
Copy link

Terraform Core Version

1.5.5

AWS Provider Version

5.18.1

Affected Resource(s)

aws_verifiedaccess_instance

Expected Behavior

being able to pass in the output id of aws_verifiedaccess_trust_provider within the verified_access_trust_providers block

Actual Behavior

I cannot pass it in unless it's applied fully first..

Relevant Error/Panic Output Snippet

╷
│ Error: Value for unconfigurable attribute
│ 
│   with module.aws-verified-access.aws_verifiedaccess_instance.main,
│   on aws-verified-access/main.tf line 22, in resource "aws_verifiedaccess_instance" "main":
│   22: resource "aws_verifiedaccess_instance" "main" {
│ 
│ Can't configure a value for "verified_access_trust_providers": its value will be decided automatically based on the result of applying this configuration.

Terraform Configuration Files

AVA resources

resource "aws_verifiedaccess_trust_provider" "oidc" {
policy_reference_name = local.policy-reference-name
trust_provider_type = "user"
user_trust_provider_type = "oidc"

oidc_options {
issuer = "https://${var.oidc-url}/"
authorization_endpoint = "https://${var.oidc-url}/authorize"
token_endpoint = "https://${var.oidc-url}/oauth/token"
user_info_endpoint = "https://${var.oidc-url}/userinfo"
client_id = var.oidc-clientid
client_secret = var.oidc-clientsecret
scope = var.oidc-scope
}

tags = {
Name = var.ava-user-trust-provider-name
}
}

resource "aws_verifiedaccess_instance" "main" {

verified_access_trust_providers {
trust_provider_type = "user"
user_trust_provider_type = "oidc"
verified_access_trust_provider_id = aws_verifiedaccess_trust_provider.oidc.id
}

tags = {
Name = var.ava-instance-name
}
}

Steps to Reproduce

Just try and pass in the aws_verifiedaccess_trust_provider.oidc.id within the "verified_access_trust_providers" block in "aws_verifiedaccess_instance" resource WITHOUT aws_verifiedaccess_trust_provider.oidc being applied.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@antonisnyc94 antonisnyc94 added the bug Addresses a defect in current functionality. label Sep 28, 2023
@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.

@github-actions github-actions bot added the service/verifiedaccess Issues and PRs that pertain to the verifiedaccess service. label Sep 28, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 28, 2023
@github-actions github-actions bot added this to the v5.20.0 milestone Oct 6, 2023
@terraform-aws-provider terraform-aws-provider bot removed the needs-triage Waiting for first response or review from a maintainer. label Oct 6, 2023
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

This functionality has been released in v5.20.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 Nov 6, 2023

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, 2023
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/verifiedaccess Issues and PRs that pertain to the verifiedaccess service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant