Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions fast/stages-aw/0-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ The `fast_features` variable consists of 4 toggles
| [billing_account](variables.tf#L35) | Billing account id. If billing account is not part of the same org set `is_org_level` to `false`. To disable handling of billing IAM roles set `no_iam` to `true`. | <code title="object&#40;&#123;&#10; id &#61; string&#10; is_org_level &#61; optional&#40;bool, true&#41;&#10; no_iam &#61; optional&#40;bool, false&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | ✓ | |
| [bootstrap_project](variables.tf#L63) | Bootstrap project ID. | <code>string</code> | ✓ | |
| [kms_protection_level](variables.tf#L236) | KMS protection level. | <code>string</code> | ✓ | |
| [organization](variables.tf#L323) | Organization details. | <code title="object&#40;&#123;&#10; id &#61; number&#10; domain &#61; optional&#40;string&#41;&#10; customer_id &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | ✓ | |
| [prefix](variables.tf#L338) | Prefix used for resources that need unique names. Use 7 characters or less. | <code>string</code> | ✓ | |
| [organization](variables.tf#L324) | Organization details. | <code title="object&#40;&#123;&#10; id &#61; number&#10; domain &#61; optional&#40;string&#41;&#10; customer_id &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | ✓ | |
| [prefix](variables.tf#L339) | Prefix used for resources that need unique names. Use 7 characters or less. | <code>string</code> | ✓ | |
| [assured_workloads](variables.tf#L22) | Configuration for Assured Workloads. | <code title="object&#40;&#123;&#10; regime &#61; string&#10; location &#61; string&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code title="&#123;&#10; regime &#61; &#34;IL5&#34;&#10; location &#61; &#34;US&#34;&#10;&#125;">&#123;&#8230;&#125;</code> |
| [billing_budget_amount](variables.tf#L45) | Optional Budget configuration for the AW folder. Includes amount and optional threshold rules (defaults to 0.5, 0.75, 0.9). If null, no budget will be created. | <code title="object&#40;&#123;&#10; amount &#61; number&#10; threshold_rules &#61; optional&#40;list&#40;number&#41;, &#91;0.5, 0.75, 0.9&#93;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>null</code> |
| [billing_override](variables.tf#L54) | Optional billing override configuration. If set, disables service account impersonation for project billing linkage and runs under the user account using the specified quota projects. | <code title="object&#40;&#123;&#10; project &#61; string&#10; billing_project &#61; string&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>null</code> |
Expand All @@ -429,13 +429,13 @@ The `fast_features` variable consists of 4 toggles
| [log_sinks](variables.tf#L258) | Org-level log sinks, in name => {type, filter} format. Valid types: 'logging' (routes to Cloud Logging bucket with 365-day default retention), 'pubsub' (routes to Pub/Sub topic with 7-day default retention; requires an active consumer to avoid log loss), 'storage' (routes to GCS bucket), 'bigquery' (routes to BigQuery dataset). | <code title="map&#40;object&#40;&#123;&#10; filter &#61; string&#10; type &#61; string&#10;&#125;&#41;&#41;">map&#40;object&#40;&#123;&#8230;&#125;&#41;&#41;</code> | | <code title="&#123;&#10;&#10;&#10; audit-logs &#61; &#123;&#10; filter &#61; &#34;logName:&#92;&#34;&#47;logs&#47;cloudaudit.googleapis.com&#37;2Factivity&#92;&#34; OR logName:&#92;&#34;&#47;logs&#47;cloudaudit.googleapis.com&#37;2Fsystem_event&#92;&#34; OR protoPayload.metadata.&#64;type&#61;&#92;&#34;type.googleapis.com&#47;google.cloud.audit.TransparencyLog&#92;&#34;&#34;&#10; type &#61; &#34;logging&#34;&#10; &#125;&#10; vpc-sc &#61; &#123;&#10; filter &#61; &#34;protoPayload.metadata.&#64;type&#61;&#92;&#34;type.googleapis.com&#47;google.cloud.audit.VpcServiceControlAuditMetadata&#92;&#34;&#34;&#10; type &#61; &#34;logging&#34;&#10; &#125;&#10; workspace-audit-logs &#61; &#123;&#10; filter &#61; &#34;logName:&#92;&#34;&#47;logs&#47;cloudaudit.googleapis.com&#37;2Fdata_access&#92;&#34; and protoPayload.serviceName:&#92;&#34;login.googleapis.com&#92;&#34;&#34;&#10; type &#61; &#34;logging&#34;&#10; &#125;&#10; empty-audit-logs &#61; &#123;&#10; filter &#61; &#34;&#34;&#10; type &#61; &#34;logging&#34;&#10; &#125;&#10;&#125;">&#123;&#8230;&#125;</code> |
| [logging_bucket_retention](variables.tf#L294) | Retention period (in days) for the Cloud Logging buckets created for organization log exports. | <code>number</code> | | <code>365</code> |
| [logging_kms_key](variables.tf#L300) | value of the KMS key used for logging. | <code>string</code> | | <code>null</code> |
| [org_policies_config](variables.tf#L306) | Organization policies customization. | <code title="object&#40;&#123;&#10; constraints &#61; optional&#40;object&#40;&#123;&#10; allowed_policy_member_domains &#61; optional&#40;list&#40;string&#41;, &#91;&#93;&#41;&#10; &#125;&#41;, &#123;&#125;&#41;&#10; import_defaults &#61; optional&#40;bool, false&#41;&#10; tag_name &#61; optional&#40;string, &#34;org-policies&#34;&#41;&#10; tag_values &#61; optional&#40;map&#40;object&#40;&#123;&#10; description &#61; optional&#40;string, &#34;Managed by the Terraform organization module.&#34;&#41;&#10; iam &#61; optional&#40;map&#40;list&#40;string&#41;&#41;, &#123;&#125;&#41;&#10; id &#61; optional&#40;string&#41;&#10; &#125;&#41;&#41;, &#123;&#125;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [outputs_location](variables.tf#L332) | Enable writing provider, tfvars and CI/CD workflow files to local filesystem. Leave null to disable. | <code>string</code> | | <code>null</code> |
| [project_deletion_policies](variables.tf#L347) | Deletion policy of each Stage 0 project. Use ABANDON for projects that you create outside Terraform and import, so terraform destroy leaves them in place. | <code title="object&#40;&#123;&#10; automation &#61; optional&#40;string, &#34;DELETE&#34;&#41;&#10; billing &#61; optional&#40;string, &#34;DELETE&#34;&#41;&#10; logging &#61; optional&#40;string, &#34;DELETE&#34;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [project_parent_ids](variables.tf#L365) | Optional parents for projects created here in folders/nnnnnnn format. Null values will use the organization as parent. | <code title="object&#40;&#123;&#10; automation &#61; optional&#40;string&#41;&#10; billing &#61; optional&#40;string&#41;&#10; logging &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [regime_mapping](variables.tf#L376) | Mapping of compliance regime names to short codes. | <code>map&#40;string&#41;</code> | | <code title="&#123;&#10; &#34;COMPLIANCE_REGIME_UNSPECIFIED&#34; &#61; &#34;CRU&#34;&#10; &#34;IL2&#34; &#61; &#34;IL2&#34;&#10; &#34;IL4&#34; &#61; &#34;IL4&#34;&#10; &#34;IL5&#34; &#61; &#34;IL5&#34;&#10; &#34;FEDRAMP_HIGH&#34; &#61; &#34;FRH&#34;&#10; &#34;FEDRAMP_MODERATE&#34; &#61; &#34;FRM&#34;&#10; &#34;CJIS&#34; &#61; &#34;CJIS&#34;&#10; &#34;US_REGIONAL_ACCESS&#34; &#61; &#34;USRE&#34;&#10; &#34;HIPAA&#34; &#61; &#34;HIPAA&#34;&#10; &#34;HITRUST&#34; &#61; &#34;HITRUST&#34;&#10; &#34;EU_REGIONS_AND_SUPPORT&#34; &#61; &#34;EURS&#34;&#10; &#34;CA_REGIONS_AND_SUPPORT&#34; &#61; &#34;CARS&#34;&#10; &#34;ITAR&#34; &#61; &#34;ITAR&#34;&#10; &#34;AU_REGIONS_AND_US_SUPPORT&#34; &#61; &#34;AUUSRS&#34;&#10; &#34;ASSURED_WORKLOADS_FOR_PARTNERS&#34; &#61; &#34;PART&#34;&#10; &#34;ISR_REGIONS&#34; &#61; &#34;ISR&#34;&#10; &#34;ISR_REGIONS_AND_SUPPORT&#34; &#61; &#34;ISRSUPP&#34;&#10; &#34;CA_PROTECTED_B&#34; &#61; &#34;CA_PROT_B&#34;&#10; &#34;JP_REGIONS_AND_SUPPORT&#34; &#61; &#34;JP_REGIONS&#34;&#10; &#34;KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS&#34; &#61; &#34;KSA_SOV&#34;&#10; &#34;REGIONAL_CONTROLS&#34; &#61; &#34;REGIONAL&#34;&#10; &#34;HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS&#34; &#61; &#34;HCLS&#34;&#10; &#34;HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT&#34; &#61; &#34;HCLS_US&#34;&#10; &#34;IRS_1075&#34; &#61; &#34;IRS_1075&#34;&#10; &#34;CANADA_CONTROLLED_GOODS&#34; &#61; &#34;CAGOODS&#34;&#10;&#125;">&#123;&#8230;&#125;</code> |
| [regions](variables.tf#L409) | Region definitions. Must be specified in terraform.tfvars. Example: us-east4 for FedRAMP High compliance. | <code title="object&#40;&#123;&#10; primary &#61; string&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code title="&#123;&#10; primary &#61; &#34;us-east4&#34;&#10;&#125;">&#123;&#8230;&#125;</code> |
| [workforce_identity_pool](variables.tf#L420) | Workforce Identity Federation pool configuration. | <code title="object&#40;&#123;&#10; display_name &#61; optional&#40;string&#41;&#10; description &#61; optional&#40;string&#41;&#10; disabled &#61; optional&#40;bool, false&#41;&#10; session_duration &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>null</code> |
| [org_policies_config](variables.tf#L306) | Organization policies customization. | <code title="object&#40;&#123;&#10; constraints &#61; optional&#40;object&#40;&#123;&#10; allowed_policy_member_domains &#61; optional&#40;list&#40;string&#41;, &#91;&#93;&#41;&#10; allowed_vpc_peering_producers &#61; optional&#40;list&#40;string&#41;, &#91;&#34;under:folders&#47;832634261155&#34;&#93;&#41;&#10; &#125;&#41;, &#123;&#125;&#41;&#10; import_defaults &#61; optional&#40;bool, false&#41;&#10; tag_name &#61; optional&#40;string, &#34;org-policies&#34;&#41;&#10; tag_values &#61; optional&#40;map&#40;object&#40;&#123;&#10; description &#61; optional&#40;string, &#34;Managed by the Terraform organization module.&#34;&#41;&#10; iam &#61; optional&#40;map&#40;list&#40;string&#41;&#41;, &#123;&#125;&#41;&#10; id &#61; optional&#40;string&#41;&#10; &#125;&#41;&#41;, &#123;&#125;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [outputs_location](variables.tf#L333) | Enable writing provider, tfvars and CI/CD workflow files to local filesystem. Leave null to disable. | <code>string</code> | | <code>null</code> |
| [project_deletion_policies](variables.tf#L348) | Deletion policy of each Stage 0 project. Use ABANDON for projects that you create outside Terraform and import, so terraform destroy leaves them in place. | <code title="object&#40;&#123;&#10; automation &#61; optional&#40;string, &#34;DELETE&#34;&#41;&#10; billing &#61; optional&#40;string, &#34;DELETE&#34;&#41;&#10; logging &#61; optional&#40;string, &#34;DELETE&#34;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [project_parent_ids](variables.tf#L366) | Optional parents for projects created here in folders/nnnnnnn format. Null values will use the organization as parent. | <code title="object&#40;&#123;&#10; automation &#61; optional&#40;string&#41;&#10; billing &#61; optional&#40;string&#41;&#10; logging &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [regime_mapping](variables.tf#L377) | Mapping of compliance regime names to short codes. | <code>map&#40;string&#41;</code> | | <code title="&#123;&#10; &#34;COMPLIANCE_REGIME_UNSPECIFIED&#34; &#61; &#34;CRU&#34;&#10; &#34;IL2&#34; &#61; &#34;IL2&#34;&#10; &#34;IL4&#34; &#61; &#34;IL4&#34;&#10; &#34;IL5&#34; &#61; &#34;IL5&#34;&#10; &#34;FEDRAMP_HIGH&#34; &#61; &#34;FRH&#34;&#10; &#34;FEDRAMP_MODERATE&#34; &#61; &#34;FRM&#34;&#10; &#34;CJIS&#34; &#61; &#34;CJIS&#34;&#10; &#34;US_REGIONAL_ACCESS&#34; &#61; &#34;USRE&#34;&#10; &#34;HIPAA&#34; &#61; &#34;HIPAA&#34;&#10; &#34;HITRUST&#34; &#61; &#34;HITRUST&#34;&#10; &#34;EU_REGIONS_AND_SUPPORT&#34; &#61; &#34;EURS&#34;&#10; &#34;CA_REGIONS_AND_SUPPORT&#34; &#61; &#34;CARS&#34;&#10; &#34;ITAR&#34; &#61; &#34;ITAR&#34;&#10; &#34;AU_REGIONS_AND_US_SUPPORT&#34; &#61; &#34;AUUSRS&#34;&#10; &#34;ASSURED_WORKLOADS_FOR_PARTNERS&#34; &#61; &#34;PART&#34;&#10; &#34;ISR_REGIONS&#34; &#61; &#34;ISR&#34;&#10; &#34;ISR_REGIONS_AND_SUPPORT&#34; &#61; &#34;ISRSUPP&#34;&#10; &#34;CA_PROTECTED_B&#34; &#61; &#34;CA_PROT_B&#34;&#10; &#34;JP_REGIONS_AND_SUPPORT&#34; &#61; &#34;JP_REGIONS&#34;&#10; &#34;KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS&#34; &#61; &#34;KSA_SOV&#34;&#10; &#34;REGIONAL_CONTROLS&#34; &#61; &#34;REGIONAL&#34;&#10; &#34;HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS&#34; &#61; &#34;HCLS&#34;&#10; &#34;HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT&#34; &#61; &#34;HCLS_US&#34;&#10; &#34;IRS_1075&#34; &#61; &#34;IRS_1075&#34;&#10; &#34;CANADA_CONTROLLED_GOODS&#34; &#61; &#34;CAGOODS&#34;&#10;&#125;">&#123;&#8230;&#125;</code> |
| [regions](variables.tf#L410) | Region definitions. Must be specified in terraform.tfvars. Example: us-east4 for FedRAMP High compliance. | <code title="object&#40;&#123;&#10; primary &#61; string&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code title="&#123;&#10; primary &#61; &#34;us-east4&#34;&#10;&#125;">&#123;&#8230;&#125;</code> |
| [workforce_identity_pool](variables.tf#L421) | Workforce Identity Federation pool configuration. | <code title="object&#40;&#123;&#10; display_name &#61; optional&#40;string&#41;&#10; description &#61; optional&#40;string&#41;&#10; disabled &#61; optional&#40;bool, false&#41;&#10; session_duration &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>null</code> |

## Outputs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,27 @@ compute.restrictPartnerInterconnectUsage:
# under:projects/PROJECT_ID,
# or projects/PROJECT_ID/global/networks/NETWORK_NAME.
# SHOULD HAVE
#
# Private services access (Cloud SQL, AlloyDB, Memorystore, Filestore and other
# services) connects your VPC networks to Google producer networks with VPC
# Network Peering. This policy also allows the values in
# org_policies_config.constraints.allowed_vpc_peering_producers. The default,
# under:folders/832634261155, is Google's Service Networking producer folder,
# which private services access peers with. Set the list to [] if you use only
# Private Service Connect.
# https://docs.cloud.google.com/organization-policy/reference/org-policy-constraints#constraints/compute.restrictVpcPeering
# https://docs.cloud.google.com/vpc/docs/private-services-access
# https://docs.cloud.google.com/vpc/docs/private-service-connect-security#org-policy-organization
# Producer IDs for other Google services, and Google's producer organization:
# https://github.com/google/stellar-engine/pull/352#pullrequestreview-5646224651
compute.restrictVpcPeering:
rules:
- allow:
values:
- under:organizations/${organization_id}
- under:folders/832634261155 # https://autonomousthingz-life.medium.com/google-cloud-organisation-policies-get-the-restrict-vpc-peering-usage-organisation-policy-d87dce84a5e7
%{ for producer in allowed_vpc_peering_producers ~}
- ${producer}
%{ endfor ~}

%{ if !contains(["FEDRAMP_MODERATE"], regime) ~}
# This list constraint defines the type of protocol forwarding rule objects
Expand Down
1 change: 1 addition & 0 deletions fast/stages-aw/0-bootstrap/organization.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ locals {
customer_id : var.organization.customer_id
drs_tag_name : local.drs_tag_name
allowed_domains : var.org_policies_config.constraints.allowed_policy_member_domains
allowed_vpc_peering_producers : var.org_policies_config.constraints.allowed_vpc_peering_producers
regime : var.assured_workloads.regime
}))
]
Expand Down
1 change: 1 addition & 0 deletions fast/stages-aw/0-bootstrap/terraform.tfvars.sample
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ org_policies_config = {
import_defaults = false # No policies to import as of 27 SEP 2024
constraints = {
allowed_policy_member_domains = [] #Update with additional customer IDs if needed
allowed_vpc_peering_producers = ["under:folders/832634261155"] # Google's Service Networking producer folder. Add other Google producers if needed
}
}

Expand Down
1 change: 1 addition & 0 deletions fast/stages-aw/0-bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ variable "org_policies_config" {
type = object({
constraints = optional(object({
allowed_policy_member_domains = optional(list(string), [])
allowed_vpc_peering_producers = optional(list(string), ["under:folders/832634261155"])
}), {})
import_defaults = optional(bool, false)
tag_name = optional(string, "org-policies")
Expand Down
Loading