State Bucket Reference

These are the state buckets for various accounts:

AccountBucket Name
ADO Sandboxas-ado-sbx-tfstate
ADO Nonprodado-nonprod-build-tfstate
ADO Productionado-prod-build-tfstate

Your state.tf file should look like this:

terraform {
  backend "s3" {
    bucket = "<bucket name for acct>"
    key    = "<app name>/<environment>/terraform.tfstate"
    region = "us-east-2"
  }
}

Shared Resource State

Each AWS account has a set of shared resources maintained by the ADOES-CSI team. The state for these resources has outputs that you can load in your own TF modules, as illustrated by the Example Terraform Module article.

The bucket name & region is the same as your account state bucket. Here are the S3 keys:

AccountS3 Object Key
ADO Sandboxas-ado-sbx-resources/sandbox/terraform.tfstate
ADO Nonprodado-shared-resources/nonprod/terraform.tfstate
ADO Productionado-shared-resources/prod/terraform.tfstate

If you want to review the available outputs, the easiest way is to look at the output stage on the Jenkins job. The jobs that build shared resources are in the CloudOps folder -> DeptName Shared Resources.