The landing zone deployment process consists of
stages. During each stage, you
must add certain variables to the terraform.tfvars file. After you complete a
stage, Terraform writes a tfvar.auto.tfvars.json file to the Cloud Storage
bucket that's created in the initial stage. Subsequent stages use
the Google Cloud CLI to copy the files and a provider file that impersonates a
stage-specific service account into the new stage folder.
Depending on the number of tenants, deploying a new environment takes approximately one hour.
Prerequisites
Complete the following tasks before deploying Stellar Engine.
Set up Google Cloud
Complete the following steps to set up Google Cloud:
Select a Google Cloud organization. If you create a new organization, sign in to the Google Admin console at least once.
Configure multiple administrators to implement separation of duties. In a testing environment, one user might have administrator roles for all resources. However, in a production environment, you require multiple administrators. For more information, see Set up your organization resource.
Enable 2-step verification for all privileged accounts.
Disable Cloud Shell. Cloud Shell isn't supported for IL4 or IL5 environments and must be disabled by a Google Workspace administrator.
If you don't have a project, create a bootstrap project.
Complete the following tasks in the bootstrap project:
Enable billing. For instructions, see Verify the billing status of your projects.
Enable the Cloud Monitoring API, if it is not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
Verify that your user account is a Super Admin.
If your organization doesn't have a data classification scheme, create one.
Assign roles
Assign the following Identity and Access Management roles to the user account that's deploying Stellar Engine.
-
Make sure that you have the following role or roles on the organization: Access Transparency Admin, Assured Workloads Administrator, Billing Account Administrator, Logging Admin, Organization Administrator, Organization Policy Admin, Organization Role Administrator, Owner, Project Creator, Service Account Admin, Service Account Token Creator, Tag Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the organization.
-
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
Grant the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the organization.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
If you are starting with a new organization, you can run the following script that's located in the fast/stages-aw/0-bootstrap folder to apply the roles:
./setIAM.sh EMAIL_ADDRESS ORGANIZATION_ID
Replace the following:
EMAIL_ADDRESS: the email address of your user account.ORGANIZATION_ID: your organization ID.
This script adds all roles except for Billing Account Administrator and Super Admin.
Add groups and configure services
In the Stage 2 section of Google Cloud Setup, add the following groups, as described in Users and groups:
Required FAST stage groups:
gcp-billing-admins@DOMAINgcp-devops@DOMAINgcp-organization-admins@DOMAINgcp-vpc-network-admins@DOMAIN
gcp-security-admins@DOMAINOptional application groups:
gcp-developers@DOMAINgcp-logging-admins@DOMAINgcp-logging-viewers@DOMAINgcp-monitoring-admins@DOMAIN
Replace
DOMAINwith your fully qualified domain name (FQDN).If prompted, skip the identity provider step.
You can also manually create a group if it isn't in the setup guide.
Enable the Assured Workloads, BigQuery, Cloud Billing, Cloud Logging, Cloud KMS, IAM, Pub/Sub, Resource Manager, Service Account Credentials, Service Usage, Organization Policy Service APIs, if any are not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.If your quota is less than 13 projects, go to Google Cloud Platform/API Project: Request Billing Quota Increase to request 13 projects. For more information, see View and manage quotas.
You can also use the
fast/stages-aw/0-bootstrap/enableServices.sh
script to enable the services.
Configure your local environment
Complete the following steps in a Linux command shell, a macOS terminal, or Windows Subsystem for Linux 2 (WSL 2) to configure your local environment:
- Clone the Stellar Engine GitHub repository.
- Install Google Cloud SDK.
- Update your local
Terraform
to match the
required_versionconstraint in themodules/*/versions.tffiles. Terraform 1.10.2 or later is supported. - Install
uvto run thestellarcommand-line interface (CLI) from thecli/directory. - Install the jq binary.
Authenticate and set the bootstrap project as the active project:
gcloud auth login gcloud config set project BOOTSTRAP_PROJECT_ID gcloud auth application-default loginReplace
BOOTSTRAP_PROJECT_IDwith the ID of the project that you created in Set up Google Cloud.
Modify modules
In most circumstances, you can use the repository without changes. If you need
to modify a module, copy the entire module and use the naming convention
<module-se> to avoid merge conflicts when periodic updates are pulled in
from the Cloud foundation fabric repository.
Run Stage 0: Bootstrap
Stage 0 aligns the existing parts of the network with the Terraform state. Stage 0 creates the initial IaC bootstrap service accounts and projects. Stage 0 designed to transition from whatever project the user initially has into a new core project and migrate the Terraform state.
Change directory into
fast/stages-aw/0-bootstrap.Copy the
terraform.tfvars.samplefile:cp terraform.tfvars.sample terraform.tfvarsCopy the
providers.tf.tmpfile to the0-bootstrap-providers.tffile:cp providers.tf.tmp 0-bootstrap-providers.tfUpdate the variables in the
fast/stages-aw/0-bootstrap/terraform.tfvarsfile:billing_account = { id = "BILLING_ACCOUNT_ID" } regions = { primary = "REGION" } organization = { domain = "DOMAIN" id = "ORGANIZATION_ID" customer_id = "CUSTOMER_ID" } outputs_location = "~/fast-config" prefix = "PREFIX" log_sinks = { audit-logs = { filter = "logName:\"/logs/cloudaudit.googleapis.com%2Factivity\" OR logName:\"/logs/cloudaudit.googleapis.com%2Fsystem_event\" OR protoPayload.metadata.@type=\"type.googleapis.com/google.cloud.audit.TransparencyLog\"" type = "logging" } vpc-sc = { filter = "protoPayload.metadata.@type=\"type.googleapis.com/google.cloud.audit.VpcServiceControlAuditMetadata\"" type = "logging" } workspace-audit-logs = { filter = "logName:\"/logs/cloudaudit.googleapis.com%2Fdata_access\" and protoPayload.serviceName:\"login.googleapis.com\"" type = "logging" } empty-audit-logs = { filter = "" type = "logging" } } org_policies_config = { constraints = { allowed_policy_member_domains = [] allowed_vpc_peering_producers = ["under:organizations/433637338589"] } } kms_protection_level = "KMS_PROTECTION_LEVEL" fast_features = { envs = true } assured_workloads = { regime = "COMPLIANCE_REGIME" location = "LOCATION" } bootstrap_project = "BOOTSTRAP_PROJECT_ID" alert_email = "ALERT_EMAIL"Replace the following:
BILLING_ACCOUNT_ID: the billing account to use for the deployment of the environments. To find the billing account information, see the Google Cloud console.REGION: the primary region to deploy resources into. The default isus-east4for IL5 and FedRAMP.To add a secondary region to deploy resources into, add
secondary = "SECONDARY_REGION", whereSECONDARY_REGIONis the name of the secondary region.DOMAIN: the FQDN. To view the FQDN, rungcloud organizations list.ORGANIZATION_ID: the organization ID for the Google Cloud organization. To view the organization ID, rungcloud organizations list.CUSTOMER_ID: the Google Workspace Directory customer ID. To view the ID, rungcloud organizations list.PREFIX: the prefix to append to the names for projects and resources that are deployed. The project name must be globally unique and the prefix must contain a maximum of seven characters. A 409 error occurs if the project name isn't unique.KMS_PROTECTION_LEVEL: the Cloud Key Management Service protection level for all stages. UseSOFTWAREforFEDRAMP_MODERATEandHSMforFEDRAMP_HIGHandIL5. If omitted, Stage 0 selects a regime-aware default (SOFTWAREforFEDRAMP_MODERATEandHSMfor all other regimes).COMPLIANCE_REGIME: the compliance regime for this environment, one ofIL4,IL5,FEDRAMP_MODERATE,FEDRAMP_HIGH, orCOMPLIANCE_REGIME_UNSPECIFIED. If you don't want to use Assured Workloads, set this value toCOMPLIANCE_REGIME_UNSPECIFIED. Stage 0 also tailors custom organization policies by regime. For example, it enforcescompute.requireOsLoginforFEDRAMP_MODERATE,FEDRAMP_HIGH, andCOMPLIANCE_REGIME_UNSPECIFIEDbut omits it forIL4andIL5, where Assured Workloads manages OS Login directly.LOCATION: the US region to deploy resources into. Dual regions such asNAM9or continents aren't supported.BOOTSTRAP_PROJECT_ID: the ID of the project that you created in Set up Google Cloud.ALERT_EMAIL: the email address to send logging alert notifications to.
Optional: Update the following variables in the
fast/stages-aw/0-bootstrap/terraform.tfvarsfile:allowed_policy_member_domains: To grant IAM roles to principals from other trusted domains (such as partner agencies or contractors), add their Google Workspace or Cloud Identity customer IDs to the list. For more information, see Restrict identities with domain-restricted sharing.allowed_vpc_peering_producers: To allow VPC Network Peering with additional organizations, folders, or projects, add the IDs for these resources to the list. Theconstraints/compute.restrictVpcPeeringorganization policy constraint uses this list to define which resources can peer with your organization's VPC networks. By default, the list includes the Google service producer organization (under:organizations/433637338589), which is required for private services access and private Google Kubernetes Engine (GKE) clusters.deploy_org_resources: For existing deployments or folder-scoped deployments without organization-level IAM permissions, update the fields in this variable to disable organization-level resource creation and scope audit logs and IAM bindings to the Assured Workloads folder. You can disable one or more resources, as required by your deployment. For example:deploy_org_resources = { audit_config = false custom_roles = false iam = false logging_settings = false logging_sinks = false org_policies = false workforce_identity_pool = false }log_sinks: To send logs to Pub/Sub for SIEM ingestion instead of a Cloud Logging bucket, set the log sink type topubsub. Make sure that your Pub/Sub subscriber is reading and storing messages from the topic so that logs aren't lost after the default seven-day message retention duration.billing_account: If you can't modify IAM bindings on a shared billing account, setno_iam = true. Import any existing projects (using theproject_deletion_policiesvariable) and Assured Workloads workloads, as described in thecli/README.mdfile. For more information, see Configure billing when using external billing accounts.
From the root directory of the repository, verify the prerequisites before initializing Terraform:
uv run --project cli stellar preflight \ --org ORGANIZATION_ID \ --billing-account BILLING_ACCOUNT_ID \ --project BOOTSTRAP_PROJECT_ID \ --prefix PREFIX \ --regime COMPLIANCE_REGIME \ --region REGIONFix all failed checks before proceeding.
The
stellarCLI includes other commands, such asstellar init,stellar imports scan, andstellar render. You can use these commands to record deployment answers in theanswers.yamlfile, generate organization policyimportblocks, and render isolated Stage 0 and Stage 1 workspaces. For more information, see thecli/README.mdfile.Run
terraform init.Run
terraform apply:terraform apply -var bootstrap_user=$(gcloud config list --format 'value(core.account)')Type
yeswhen prompted.Switch to your new project:
gcloud config set project PREFIX-prod-iac-core-0Copy the new local Terraform providers file:
gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/providers/0-bootstrap-providers.tf ./Migrate the state from local to remote:
terraform init --migrate-stateType
yeswhen prompted.Run
./import.sh.Run
terraform applyone more time. Typeyeswhen prompted.
Run Stage 1: Resource management
Stage 1 creates the different folders, projects, and service accounts at the
organization level that are used for subsequent stages. To create the
environment, you must update the terraform.tfvars file in
fast/stages-aw/1-resman to include a tenants variable. Each tenant (for
example, a specific federal agency or internal development group) gets its own
dedicated, isolated boundary to run its workloads. Each tenant inherits the
centralized security controls, networking perimeter, policy guardrails, and
audit log sinks that are created in Stage 0 and Stage 2.
If you are using an external billing account, see Configure billing when using external billing accounts.
Change directory into
fast/stages-aw/1-resman.Copy the
terraform.tfvars.samplefile:cp terraform.tfvars.sample terraform.tfvarsUpdate
terraform.tfvarsas follows:tenants = { ten-1 = { admin_principal = "group:gcp-devops@DOMAIN" descriptive_name = "TENANT_ONE_NAME" locations = { gcs = "REGION" kms = "REGION" } }, ten-2 = { admin_principal = "group:gcp-devops@DOMAIN" descriptive_name = "TENANT_TWO_NAME" locations = { gcs = "REGION" kms = "REGION" } } } fast_features = { envs = true } envs_folders = { Prod = { admin = "gcp-organization-admins@DOMAIN" }, Int = { admin = "gcp-organization-admins@DOMAIN" }, Test = { admin = "gcp-organization-admins@DOMAIN" } }Replace the following:
DOMAIN: the primary FQDN. To view the FQDN, rungcloud organizations list.TENANT_ONE_NAME: the name for the first tenant project that's deployed. Use a maximum of six characters.REGION: the primary region to deploy resources into. The default isus-east4for IL5 and FedRAMP.TENANT_TWO_NAME: the name for the second tenant project that's deployed. Use a maximum of six characters.
Add as many tenant definitions as you require.
Optional: To override the organization-level policy constraints on tenant projects, create one or more YAML files that define the organization policy constraints in the
fast/stages-aw/1-resman/data/org-policies/directory. To use a different directory, setfactories_config.org_policiesin thefast/stages-aw/1-resman/terraform.tfvarsfile.For example, to allow an additional custom VM image project on tenant projects while keeping the parent organization's allowed image projects, create a YAML file that includes the following:
compute.trustedImageProjects: inherit_from_parent: true rules: - allow: values: - projects/IMAGE_PROJECT_IDReplace
IMAGE_PROJECT_IDwith the project ID that hosts your trusted VM images.Copy the
tfvarsfiles from Cloud Storage:gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/providers/1-resman-providers.tf ./ && gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-globals.auto.tfvars.json ./ && gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-bootstrap.auto.tfvars.json ./Run
terraform init.Run
terraform apply. Typeyeswhen prompted.
Run Stage 2: Network creation
Stage 2 includes two networking options: one for FedRAMP High or FedRAMP Moderate and one for IL4 or IL5.
Configure networking for FedRAMP High or Moderate
If you are using an external billing account, see Configure billing when using external billing accounts.
Change directory into
fast/stages-aw/2-networking-a-fedramp.Copy the provider and global tfvars files from the Cloud Storage buckets:
gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/providers/2-networking-providers.tf ./ && \ gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-globals.auto.tfvars.json ./ && \ gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-bootstrap.auto.tfvars.json ./ && \ gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/1-resman.auto.tfvars.json ./Copy the
terraform.tfvars.samplefile:cp terraform.tfvars.sample terraform.tfvarsIn the
terraform.tfvarsfile, update the custom subnets, proxy subnets, firewall rules, named CIDRs, and DNS response policy rules.Run
terraform init.Run
terraform apply. Typeyeswhen prompted.
Configure networking for IL4 or IL5
This step deploys a pair of Palo Alto VM-Series Next-Generation Firewalls
(NGFWs) into the network account. The NGFWs use the Bring Your Own License
(BYOL) deployment image and require you to use the Palo Alto console to upload a
VM code and register them. For more instructions, see the README in the
2-networking-b-il5-ngfw
stage folder.
If you are using an external billing account, see Configure billing when using external billing accounts.
Change directory into
fast/stages-aw/2-networking-b-il5-ngfw.Copy the provider and global tfvars files from the Cloud Storage buckets:
gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/providers/2-networking-providers.tf ./ && \ gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-globals.auto.tfvars.json ./ && \ gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-bootstrap.auto.tfvars.json ./ && \ gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/1-resman.auto.tfvars.json ./Copy the
terraform.tfvars.samplefile:cp terraform.tfvars.sample terraform.tfvarsIn the
terraform.tfvarsfile, update the custom subnets (including mgmt), proxy subnets, firewall rules, named CIDRs, and DNS response policy rules.Run
terraform init.Run
terraform apply. Typeyeswhen prompted.If you receive an error about a service account or Cloud KMS not existing, in the console, click Settings in the
PREFIX-net-vdss-hoststorage account. The service account is generated.
Run Stage 3: Security and audit account configuration
Stage 3 configures the security and audit projects. The security project
(prod-sec-core-0) contains Cloud KMS and can contain
Secret Manager. In IL5, CMEK is enabled by default for
Compute Engine, GKE, Cloud Storage, and
Cloud SQL. The following organization policy constraints are enforced:
gcp.restrictNonCmekServices:denied_values: "compute.googleapis.com"denied_values: "container.googleapis.com"denied_values: "storage.googleapis.com"denied_values: "sqladmin.googleapis.com"
gcp.restrictCmekCryptoKeyProjects:gcp.restrictCmekCryptoKeyProjectsincludes a list of projects that can use CMEK.
In the prod-sec-core-0 project, the following items are configured:
- Cloud KMS restricted admins are granted the restricted Admin role so that they can grant decrypt permissions to other services.
- Cloud KMS key rings in different locations are provisioned. The key ring locations must match the service locations. For example, a multi-regional key ring cannot be used in a single region's storage bucket.
The audit project (audit-logs-0) is a centralized location for
organization-level logs. These logs are divided into the following categories:
audit-logs: Administrator activities, system events, and Access Transparency logsvpc-sc: VPC Service Controls logsworkspace-audit-logs: Google Workspace logs for sign-ins and data accessempty-audit-logs: all other logs
This project can include CMEK-encrypted Logging buckets, or it can
include Pub/Sub topics that route the logs for ingestion into a
SIEM. The default option is Logging buckets with default retention
periods of 365 days. To change the retention period, use the
logging_bucket_retention variable that's defined in the Stage 0
terraform.tfvars file.
Security administrators are responsible for the security project and auditors are responsible for the audit project.
If you are using an external billing account, see Configure billing when using external billing accounts.
Change directory into
fast/stages-aw/3-security.Copy the configuration files from the Cloud Storage buckets:
gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/providers/3-security-providers.tf ./ && gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-globals.auto.tfvars.json ./ && gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/0-bootstrap.auto.tfvars.json ./ && gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/1-resman.auto.tfvars.json ./Run
terraform init.Run
terraform apply. Typeyeswhen prompted.If you encounter an issue with service accounts, rerun
terraform apply.Run
./sa_lockdown.shto disable the service accounts that you used during deployment.
Configure billing when using external billing accounts
If you are using an external billing account, you can add the Billing Account Administrator role to required service accounts or use a billing override.
Complete one of the following:
Add the Billing Account Administrator role to the following service accounts:
PREFIX-prod-resman-0@PREFIX-prod-iac-core-0.iam.gserviceaccount.com: This service account is created in Stage 0.PREFIX-prod-resman-net-0@PREFIX-prod-iac-core-0.iam.gserviceaccount.com: This service account is created in Stage 1.PREFIX-security-0@PREFIX-prod-iac-core-0.iam.gserviceaccount.com: This service account is created in Stage 2.
Replace
PREFIXwith the prefix for your deployment.To add the role to these service accounts, complete Access the Permissions panel for a Cloud Billing account and Update roles and principals in the Permissions panel.
If you can't grant billing permissions to the stage service accounts, use a billing override to run project creation or billing links using your personal credentials. Define the
billing_overridevariable in the followingterraform.tfvarsfiles:fast/stages-aw/1-resman/terraform.tfvarsfast/stages-aw/2-networking-a-fedramp/terraform.tfvarsorfast/stages-aw/2-networking-b-il5-ngfw/terraform.tfvarsfast/stages-aw/3-security/terraform.tfvars
billing_override = { project = "QUOTA_PROJECT_ID" billing_project = "QUOTA_PROJECT_ID" }Replace
QUOTA_PROJECT_IDwith the project ID for your quota project.
Modify tenant projects
Perform the following steps when adding or removing tenant projects for an existing Stellar Engine deployment.
Authenticate and set the active project:
gcloud auth login gcloud config set project PREFIX-prod-iac-core-0 gcloud auth application-default loginReplace
PREFIXwith the prefix that you configured for your deployment.Enable the service accounts for the stages:
Change directory into
fast/stages-aw/3-security.Run
./sa_lockdown.sh --enable.
Apply Stage 1:
Change directory into
fast/stages-aw/1-resman.Update the information in
terraform.tfvarsto your new requirements.Run
terraform init.Run
terraform apply. Typeyeswhen prompted.
Apply Stage 2:
Change directory into one of the following network folders:
Copy the
1-resmantfvars file from the Cloud Storage bucket:
gcloud storage cp gs://PREFIX-prod-iac-core-outputs-0/tfvars/1-resman.auto.tfvars.json ./Run
terraform init.Run
terraform apply. Typeyeswhen prompted.
Disable the service accounts for the stages:
Change directory into
fast/stages-aw/3-security.Run
./sa_lockdown.sh.
Troubleshooting
This section describes some common errors and resolutions.
BigQuery isn't usable error in stage 1
If you get an error that bigquery.googleapis.com isn't usable in
Assured Workloads, complete the following:
In the console, go to the Assured Workloads page.
Select the
StellarEngine-PREFIXfolder and Networking folder, if applicable, wherePREFIXis the prefix for your deployment.Click Review Available Updates.
Go to Allowed Services.
Click Allow services to add the BigQuery APIs.
If prompted, click Yes to confirm your choice.
Wait about two minutes and then re-run
terraform apply:terraform apply -var bootstrap_user=$(gcloud config list --format 'value(core.account)')Type
yeswhen prompted.
Your bootstrap project loses access to your billing account
If your bootstrap project loses access to your billing account, re-enable billing for your bootstrap project.
Cloud KMS key errors
If key errors occur during the build process, you might have to manually enable the keys. For instructions, see Enable a key version.
If you receive these errors, wait about one minute and rerun terraform apply.
Symbolic links not working on Windows computers
Windows shell environments (for example, PowerShell, Command Prompt, Git Bash, or Cygwin) aren't supported because stage linking and deployment scripts rely on POSIX path resolution and symbolic links. Complete the following:
On a Windows workstation, clone the repository inside a WSL 2 Linux file system (for example,
~/stellar-enginerather than/mnt/c/) or a dev container.Run all commands from that environment.
If symbolic links still fail during Stage 2, copy the
psc.tfandlog-metric-alerts.tffiles into the stage directory manually.
Cross-stage IAM impersonation 403 Forbidden errors
Each deployment stage uses a dedicated automation service account that's
configured in its generated *-providers.tf file. If you encounter 403
Forbidden or iam.serviceAccounts.getAccessToken errors when transitioning
between stages, complete the following:
Clear stale shell impersonation variables by running one of the following:
unset GOOGLE_IMPERSONATE_SERVICE_ACCOUNT CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT../../stage-links.sh OUTPUTS_LOCATION
Replace
OUTPUTS_LOCATIONwith the outputs location directory path that you configured in Stage 0 (for example,~/fast-config).These commands ensure that Terraform uses the stage's
*-providers.tfconfiguration.If you disabled the deployment service accounts in Stage 3, in the
fast/stages-aw/3-securitydirectory, run./sa_lockdown.sh --enable.Verify that your active
gcloud auth listidentity belongs to thegcp-organization-adminsorgcp-devopsgroup that has the Service Account Token Creator (roles/iam.serviceAccountTokenCreator) role on the target stage service account.
Billing or quota issues
If you encounter billing or quota issues, verify that your quota project is set. You can set it by running the following:
gcloud auth application-default set-quota-project PREFIX-prod-iac-core-0
Replace PREFIX with the prefix for your
deployment. Optionally, you can use another project.
Organization policy constraint compute.restrictVpcPeering violated
Stage 0 configures the
constraints/compute.restrictVpcPeering
organization policy constraint using your organization node
(under:organizations/ORGANIZATION_ID,
where ORGANIZATION_ID is your organization ID) and
the org_policies_config.constraints.allowed_vpc_peering_producers list in the
fast/stages-aw/0-bootstrap/terraform.tfvars file.
If you deploy services or blueprints that use private services access or private GKE clusters with VPC Network Peering, complete the following:
- Include the Google service producer organization
(
under:organizations/433637338589) inorg_policies_config.constraints.allowed_vpc_peering_producers. - Rerun
terraform applyin thefast/stages-aw/0-bootstrapdirectory.
What's next
Review the Stellar Engine Security Best Practices Guide and Security Policy for post-deployment hardening and vulnerability reporting guidance.
For additional security configuration, see Gemini security standards.
Integrate a SIEM solution such as Google Security Operations to monitor the resources. Segment your SIEM in a separate Google Cloud project and on a separate VPC from where it is collecting data.