Skip to content

Commit

Permalink
chore: add byo_endpoint_service_name to cc_gwlb_asg
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolnar-zscaler committed Oct 8, 2024
1 parent 4bd8745 commit ef65172
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions examples/cc_gwlb_asg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ From cc_gwlb_asg directory execute:
| <a name="input_asg_lambda_filename"></a> [asg\_lambda\_filename](#input\_asg\_lambda\_filename) | Name of the lambda zip file without suffix | `string` | `"zscaler_cc_lambda_service"` | no |
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | The AWS region. | `string` | `"us-west-2"` | no |
| <a name="input_az_count"></a> [az\_count](#input\_az\_count) | Default number of subnets to create based on availability zone | `number` | `2` | no |
| <a name="input_byo_endpoint_service_name"></a> [byo\_endpoint\_service\_name](#input\_byo\_endpoint\_service\_name) | Exising GWLB Endpoint Service name to associate GWLB Endpoints to. Example string format: "com.amazonaws.vpce.<region>.<service id>" | `string` | `null` | no |
| <a name="input_byo_iam"></a> [byo\_iam](#input\_byo\_iam) | Bring your own IAM Instance Profile for Cloud Connector | `bool` | `false` | no |
| <a name="input_byo_iam_instance_profile_id"></a> [byo\_iam\_instance\_profile\_id](#input\_byo\_iam\_instance\_profile\_id) | IAM Instance Profile ID for Cloud Connector association | `list(string)` | `null` | no |
| <a name="input_byo_igw"></a> [byo\_igw](#input\_byo\_igw) | Bring your own AWS VPC for Cloud Connector | `bool` | `false` | no |
Expand Down
19 changes: 10 additions & 9 deletions examples/cc_gwlb_asg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,16 @@ module "gwlb" {
# per Cloud Connector subnet/availability zone.
################################################################################
module "gwlb_endpoint" {
source = "../../modules/terraform-zscc-gwlbendpoint-aws"
name_prefix = var.name_prefix
resource_tag = random_string.suffix.result
global_tags = local.global_tags
vpc_id = module.network.vpc_id
subnet_ids = module.network.cc_subnet_ids
gwlb_arn = module.gwlb.gwlb_arn
acceptance_required = var.acceptance_required
allowed_principals = var.allowed_principals
source = "../../modules/terraform-zscc-gwlbendpoint-aws"
name_prefix = var.name_prefix
resource_tag = random_string.suffix.result
global_tags = local.global_tags
vpc_id = module.network.vpc_id
subnet_ids = module.network.cc_subnet_ids
gwlb_arn = module.gwlb.gwlb_arn
acceptance_required = var.acceptance_required
allowed_principals = var.allowed_principals
byo_endpoint_service_name = var.byo_endpoint_service_name
}


Expand Down
6 changes: 6 additions & 0 deletions examples/cc_gwlb_asg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,9 @@
## By uncommenting (setting to false) this assumes that you have an existing VPC/Subnets (byo_subnets = true)

#cc_route_table_enabled = false

## 52. By default, this script will create a new VPC Endpoint Service in all availability zones specifified.
## Uncomment, and provide your existing GWLB Endpoint Service name to associate new GWLB Endpoints to
## Example string format: "com.amazonaws.vpce.<region>.<service id>"

#byo_endpoint_service_name = "endpoint service name"
6 changes: 6 additions & 0 deletions examples/cc_gwlb_asg/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -502,3 +502,9 @@ variable "cc_route_table_enabled" {
description = "For brownfield environments where VPC subnets already exist, set to false to not create a new route table to associate to Cloud Connector subnet(s). Default is true which means module will try to create new route tables"
default = true
}

variable "byo_endpoint_service_name" {
type = string
description = "Exising GWLB Endpoint Service name to associate GWLB Endpoints to. Example string format: \"com.amazonaws.vpce.<region>.<service id>\""
default = null
}

0 comments on commit ef65172

Please sign in to comment.