v0.14.6
There is no clear indication of an error with a particular resource, but there are multiple errors of the following type - vertex "cloudflare_access_policy.policy": dynamic subgraph encountered errors that relate to these resources:
locals {
cloudflare_account_id = "test_id"
session_duration = "6h"
envs = toset([
"env1",
"env2",
])
}
data "terraform_remote_state" "test_state" {
backend = "atlas"
config = {
name = "test_org/test_state"
}
}
resource "cloudflare_access_application" "test_app" {
for_each = local.envs
account_id = local.cloudflare_account_id
name = "test-app-${each.value}"
domain = "test-app-${each.value}.test-org.com"
session_duration = local.session_duration
allowed_idps = [data.terraform_remote_state.test_state.outputs.gsuite_identity_provider_id]
}
resource "cloudflare_access_policy" "test_app_gsuite" {
for_each = local.envs
application_id = cloudflare_access_application.test_app[each.value].id
account_id = local.cloudflare_account_id
name = "test-app-${each.value} gsuite policy"
precedence = 1
decision = "allow"
include {
gsuite {
identity_provider_id = data.terraform_remote_state.test_state.outputs.gsuite_identity_provider_id
email = [
"[email protected]",
]
}
}
}
Plan should have finished successfully with "no changes" result.
Plan crashes with panic.
terraform initterraform applyterraform plan
thanks for the issue; by the looks of things, this should already be addressed by #940 as it's failing on the GSuite access group.
if you'd like to test that fix works for you, checkout the README on building the provider (https://github.com/cloudflare/terraform-provider-cloudflare#building-the-provider) and you can retry the steps above.
Most helpful comment
thanks for the issue; by the looks of things, this should already be addressed by #940 as it's failing on the GSuite access group.
if you'd like to test that fix works for you, checkout the README on building the provider (https://github.com/cloudflare/terraform-provider-cloudflare#building-the-provider) and you can retry the steps above.