Skip to content

Commit

Permalink
Merge pull request #691 from CDCgov/issue-498-prod-terraform
Browse files Browse the repository at this point in the history
498: Create the Prod Environment in Terraform
  • Loading branch information
halprin authored Nov 30, 2023
2 parents 0af2d40 + 264155e commit 2fdb2b9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
32 changes: 32 additions & 0 deletions operations/environments/prod/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.82.0"
}
}

# Use a remote Terraform state in Azure Storage
backend "azurerm" {
resource_group_name = "csels-rsti-prod-moderate-rg"
storage_account_name = "cdcintermediarytrfrmprod"
container_name = "terraform-state"
key = "prod.terraform.tfstate"
}
}

# Configure the Microsoft Azure Provider
provider "azurerm" {
features {
key_vault {
purge_soft_deleted_secrets_on_destroy = false
}
}
}

module "template" {
source = "../../template/"

environment = "prod"
deployer_id = "f5feabe7-5d37-40ba-94f2-e5c0760b4561" //github app registration in CDC Azure Entra
}
7 changes: 7 additions & 0 deletions operations/environments/prod/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "registry" {
value = module.template.registry
}

output "publish_app" {
value = module.template.publish_app
}

0 comments on commit 2fdb2b9

Please sign in to comment.