You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Terraform opinionated module that creates AWS Global Accelerator resources. The motivation for updating this module was the open issue terraform-aws-modules#3.
We have added the necessary changes to create any number of endpoint groups per listener, and on top of that, we have refactored the module to satisfy the input structure we want to follow as part of the CRDR project.
Usage
terraform {
source="github.com/verygood-ops/terraform-aws-global-accelerator?ref=INFRA-9844"
}
# Include all settings from the root terragrunt.hcl fileinclude {
path=find_in_parent_folders()
}
generate"backend" {
path="_terragrunt_generated_backend.tf"if_exists="overwrite_terragrunt"contents=<<-EOF terraform { backend "s3" {} } EOF
}
# ---------------------------------------------------------------------------------------------------------------------# MODULE PARAMETERS# These are the variables we have to pass in to use the module specified in the terragrunt configuration above# ---------------------------------------------------------------------------------------------------------------------locals {
account_vars=read_terragrunt_config(find_in_parent_folders("account.hcl"))
}
inputs={
name ="hello-world-secrets-and-values"
endpoint_groups = {
"us-west-2"= {
endpoints = [
{
endpoint_id ="arn:aws:elasticloadbalancing:us-west-2:883127560329:loadbalancer/net/hello-world-secrets-and-values/087e6c08cdd9ebf2"
weight =60
},
{
endpoint_id ="arn:aws:elasticloadbalancing:us-west-2:883127560329:loadbalancer/net/hello-world-secrets-and-values-0/1f4051e54f007844"
weight =40
},
]
traffic_dial_percentage =100
health_check_port =5555
health_check_protocol ="HTTP"
health_check_path ="/health"
health_check_interval_seconds =10
threshold_count =3
},
"us-east-2"= {
endpoints = []
traffic_dial_percentage =0
}
}
listener_ports = {
80 = 8080,
}
infra_environment = local.account_vars.locals.infra_environment
data_environment = local.account_vars.locals.data_environment
deployment_environment ="vault"
product ="internal"
service ="demo"
tenant ="NONE"
team ="team-infrastructure"
}
Examples
Examples codified under the examples are intended to give users references for how to use the module(s) as well as testing/validating changes to the source code of the module. If contributing to the project, please be sure to make any appropriate updates to the relevant examples to allow maintainers to test your changes and to keep the examples up to date for users. Thank you!
The DNS name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses