-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
After creating an instance of resource polaris_aws_cnp_account
with argument cloud = "GOV"
, the resource is stored to the terraform state with cloud = "STANDARD"
:
terraform state show 'polaris_aws_cnp_account.account'
resource "polaris_aws_cnp_account" "account" {
cloud = "STANDARD"
# ...
Seemingly related, polaris_aws_cnp_account_trust_policy
fails with Error: failed to get trust policies: error: invalid region id passed
. We are following the example here: https://github.com/rubrikinc/terraform-provider-polaris-examples/blob/368cae056b93d4e04b55e39e547f36c31c027fe2/aws_cnp_account/main.tf#L122
resource "polaris_aws_cnp_account_trust_policy" "trust_policy" {
for_each = data.polaris_aws_cnp_artifacts.artifacts.role_keys
account_id = polaris_aws_cnp_account.account.id
features = var.features.*.name
external_id = var.external_id
role_key = each.key
}
│ Error: failed to get trust policies: error: invalid region id passed
│
│ with module.<omitted>.polaris_aws_cnp_account_trust_policy.trust_policy["CROSSACCOUNT"],
│ on ..\..\modules\rubrik\main.tf line 134, in resource "polaris_aws_cnp_account_trust_policy" "trust_policy":
│ 134: resource "polaris_aws_cnp_account_trust_policy" "trust_policy" {
I'm wondering if somehow polaris_aws_cnp_account
resource is being marked as STANDARD, and then polaris_aws_cnp_account_trust_policy
is using standard (aws commercial) regions?
Metadata
Metadata
Assignees
Labels
No labels