Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

infra-gcp-core

Provisions SGFDEVS shared GCP foundation resources, including projects, APIs, service accounts, and workload identity federation.

Scope

  • Owns: GCP projects and billing associations.
  • Owns: API enablement and application service accounts.
  • Owns: GitHub Actions workload identity federation and service-account access.

Structure

  • src/tf/: One file per GCP project, with its APIs and IAM resources. Each resource targets its own project rather than using a provider-wide default.
  • .github/workflows/: Validation workflow for OpenTofu changes.

Run

Copy .envrc.example to .envrc and set the AWS profile, Google Cloud organization ID, and billing account ID. The stack manages sgfdevs-method-conf under that organization and trusts manual Play deployments from main.

source ./.envrc
gcloud auth application-default login
aws sso login --profile "$AWS_DEFAULT_PROFILE"

make help
make tf-init
make tf-plan
make tf-apply
make tf-output

Operating constraints

  • Uses the S3 and DynamoDB state backend managed by infra-aws-core; apply that stack first.
  • Projects are created by OpenTofu, not manually beforehand.
  • Applies are manual/local; CI runs validation only.
  • Use short-lived credentials, not service-account keys.
  • For Play publishing, invite the service account in Play Console with app-specific View app information (read-only) and Release apps to testing tracks permissions. Grant production release permission only when needed; do not grant account-wide access.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages