Skip to content

Commit

Permalink
Added production to deployment pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Jun 25, 2024
1 parent 61dde96 commit 0ab6154
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
type: choice
options:
- staging
- production

jobs:
deploy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ on:
type: choice
options:
- staging
- production

jobs:
plan:
Expand Down
28 changes: 14 additions & 14 deletions tofu/config/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ module "backend" {
environment = "staging"
}

# Create hosted zones for DNS.
module "hosted_zones" {
source = "terraform-aws-modules/route53/aws//modules/zones"
version = "~> 3.1"

zones = {
document_transfer = {
domain_name = "staging.document-transfer.cfa.codes"
comment = "Hosted zone for the Document Transfer service."
}
}
}

# Create an S3 bucket and KMS key for logging.
module "logging" {
# tflint-ignore: terraform_module_pinned_source
Expand Down Expand Up @@ -49,23 +62,10 @@ module "vpc" {
}
}

# Create hosted zones for DNS.
module "hosted_zones" {
source = "terraform-aws-modules/route53/aws//modules/zones"
version = "~> 3.1"

zones = {
getchildcare = {
domain_name = "staging.getchildcareil.org"
comment = "Hosted zone for the Illinois GetChildcare application."
}
}
}

# Deploy the Document Transfer service to a Fargate cluster.
module "document_transfer" {
# tflint-ignore: terraform_module_pinned_source
source = "github.com/codeforamerica/tofu-modules/aws/fargate_service"
source = "github.com/codeforamerica/tofu-modules?ref=secrets-manager/aws/fargate_service"

project = "illinois-getchildcare"
project_short = "il-gcc"
Expand Down

0 comments on commit 0ab6154

Please sign in to comment.