trying to use autonaming i get into weird requirem...
# general
d
trying to use autonaming i get into weird requirement of snake_case for specific gcloud types
Copy code
config:
  pulumi:autonaming:
    value:
      pattern: ${stack}-${config.region}-${name}-${hex(4)}
      providers:
        gcp:
          resources:
              gcp:projects/iAMCustomRole:IAMCustomRole:
                pattern: ${stack}_${config.region}_${name}_${hex(4)}
Copy code
error: gcp:projects/iAMCustomRole:IAMCustomRole resource 'common_iam_dev' has a problem: "role_id" ("local_us-west3_common_iam_dev_d822") doesn't match regexp "^[a-zA-Z0-9_\\.]{3,64}$". Examine values at 'common_iam_dev.roleId'.
Basically, the config.region =
us-west3
, anyway to snake case it to
us_west3
?