Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
locals {
account_name = "qed-it"
aws_profile = "qed-it"
aws_account_id = run_cmd("--terragrunt-quiet", "aws", "sts", "get-caller-identity", "--profile", local.aws_profile, "--query", "Account", "--output", "text")
aws_account_id = "496038263219"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
locals {
# Automatically load environment-level variables
environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))

region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
# Extract out common variables for reuse
env = local.environment_vars.locals.environment
}

# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
terraform {
source = "../../../../../terraform-aws-modules/ecr"
}

# Include all settings from the root terragrunt.hcl file
include {
path = find_in_parent_folders()
}

inputs = {
env = local.env
name = "zebra-server-swaps"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
locals {
# Automatically load environment-level variables
environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))

region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
# Extract out common variables for reuse
env = local.environment_vars.locals.environment
}

# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
terraform {
source = "../../../../../terraform-aws-modules/ecs"
}

# Include all settings from the root terragrunt.hcl file
include {
path = find_in_parent_folders()
}

dependency "vpc" {
config_path = "../vpc"
}

dependency "ecr" {
config_path = "../ecr"
}

inputs = {
name = "zebra-swaps"
environment = local.env
region = local.region_vars.locals.aws_region
account_id = local.account_vars.locals.aws_account_id

vpc_id = dependency.vpc.outputs.vpc_id
private_subnets = dependency.vpc.outputs.private_subnets
public_subnets = dependency.vpc.outputs.public_subnets

image = "${dependency.ecr.outputs.ecr-url}:latest"

task_memory=4096
task_cpu=1024

enable_logging = true
enable_backup = false

enable_domain = true
domain = "zebra-swaps.zsa-test.net"
zone_name = "zsa-test.net"

persistent_volume_size = 40

port_mappings = [
{
containerPort = 80
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep only the 18232 port, if tx-tool works fine remove also in the main zebra

hostPort = 80
protocol = "tcp"
},
{
containerPort = 443
hostPort = 443
protocol = "tcp"
},
// Zebra ports are:
// TCP ports:
{ // RPC PubSub
containerPort = 18232
hostPort = 18232
protocol = "tcp"
}
]
}
Loading