Skip to content

Commit

Permalink
terragrunt live
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Dec 2, 2024
1 parent fcf5b76 commit b8fe523
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 0 additions & 4 deletions deployment/live/aws/conformance/ci/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
terraform {
source = "${get_repo_root()}/deployment/modules/aws//storage"
}

include "root" {
path = find_in_parent_folders()
expose = true
Expand Down
23 changes: 14 additions & 9 deletions deployment/live/aws/conformance/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
terraform {
source = "${get_repo_root()}/deployment/modules/aws//storage"
source = "${get_repo_root()}/deployment/modules/aws//conformance"
}

locals {
env = path_relative_to_include()
account_id = "${get_aws_account_id()}"
region = get_env("AWS_REGION", "us-east-1")
profile = get_env("AWS_PROFILE", "default")
base_name = get_env("TESSERA_BASE_NAME", "${local.env}-conformance")
prefix_name = get_env("TESSERA_PREFIX_NAME", "trillian-tessera")
ephemeral = true
env = path_relative_to_include()
account_id = "${get_aws_account_id()}"
region = get_env("AWS_REGION", "us-east-1")
base_name = get_env("TESSERA_BASE_NAME", "${local.env}-conformance")
prefix_name = get_env("TESSERA_PREFIX_NAME", "trillian-tessera")
ecr_registry = get_env("ECR_REGISTRY", "${local.env}.dkr.ecr.${local.region}.amazonaws.com")
ecr_repository_conformance = get_env("ECR_REPOSITORY_CONFORMANCE", "trillian-tessera/conformance:latest")
ecr_repository_hammer = get_env("ECR_REPOSITORY_HAMMER", "trillian-tessera/hammer:latest")
signer = get_env("TESSERA_SIGNER")
verifier = get_env("TESSERA_VERIFIER")
# Roles are defined externally
ecs_role = "arn:aws:iam::${local.account_id}:role/ecsTaskExecutionRole"
ephemeral = true
}

remote_state {
backend = "s3"

config = {
region = local.region
profile = local.profile
bucket = "${local.prefix_name}-${local.base_name}-terraform-state"
key = "${local.env}/terraform.tfstate"
dynamodb_table = "${local.prefix_name}-${local.base_name}-terraform-lock"
Expand Down

0 comments on commit b8fe523

Please sign in to comment.