Terragrunt/terraform code for deploying ecs-haproxy service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws_region = "AWS_REGION" | |
cluster_name = "ECS_CLUSTER_NAME" | |
service_name = "haproxy" | |
tag_name = "latest" | |
default_domain = "null.example.com" | |
service_registry_id = "ns-BLAH" | |
namespace_map = [ | |
{ | |
namespace = "cluster.blah.local" | |
domainname = "example.com" | |
} | |
] | |
lb_subnets = [ | |
"LIST_OF_SUBNETS" | |
] | |
vpc_id = "VPC_ID" | |
memory = 128 | |
listener_cert_arn = "CERTIFICATE_ARN" | |
root_domain = "ROOT_DOMAIN_FOR_ALB_ENDPOINT" | |
host_name = "HOST_NAME_FOR_ALB_ENDPOINT" | |
prom_password_ssm_secret = "/haproxy/dev/prom_passwd" | |
stats_password_ssm_secret = "/haproxy/dev/stats_passwd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
source = "github.com/richardjkendall/tf-modules.git//modules/ecs-haproxy?ref=v24" | |
extra_arguments "custom_vars" { | |
commands = get_terraform_commands_that_need_vars() | |
# With the get_terragrunt_dir() function, you can use relative paths! | |
arguments = [ | |
# remember to change your paths... | |
"-var-file=${get_terragrunt_dir()}/../../../common/common.tfvars", | |
"-var-file=${get_terragrunt_dir()}/terraform.tfvars" | |
] | |
} | |
} | |
include { | |
path = find_in_parent_folders() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment