[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
Labels
bug
Addresses a defect in current functionality.
service/verifiedaccess
Issues and PRs that pertain to the verifiedaccess service.
Milestone
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
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
The text was updated successfully, but these errors were encountered: