Skip to content

Commit

Permalink
chore: updating the association settings and the force replacment
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed May 10, 2024
1 parent e1efa6b commit dae44be
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 37 deletions.
24 changes: 13 additions & 11 deletions endpoints.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ module "endpoints_vpc" {
source = "appvia/network/aws"
version = "0.3.0"

availability_zones = var.connectivity_config.endpoints.network.availability_zones
enable_ipam = var.connectivity_config.endpoints.network.ipam_pool_id != null
enable_transit_gateway = true
enable_transit_gateway_appliance_mode = true
ipam_pool_id = var.connectivity_config.endpoints.network.ipam_pool_id
name = var.connectivity_config.endpoints.network.name
private_subnet_netmask = var.connectivity_config.endpoints.network.private_netmask
tags = var.tags
transit_gateway_id = module.tgw.ec2_transit_gateway_id
vpc_cidr = var.connectivity_config.endpoints.network.vpc_cidr
vpc_netmask = var.connectivity_config.endpoints.network.vpc_netmask
availability_zones = var.connectivity_config.endpoints.network.availability_zones
enable_default_route_table_association = false
enable_default_route_table_propagation = false
enable_ipam = var.connectivity_config.endpoints.network.ipam_pool_id != null
enable_transit_gateway = true
enable_transit_gateway_appliance_mode = true
ipam_pool_id = var.connectivity_config.endpoints.network.ipam_pool_id
name = var.connectivity_config.endpoints.network.name
private_subnet_netmask = var.connectivity_config.endpoints.network.private_netmask
tags = var.tags
transit_gateway_id = module.tgw.ec2_transit_gateway_id
vpc_cidr = var.connectivity_config.endpoints.network.vpc_cidr
vpc_netmask = var.connectivity_config.endpoints.network.vpc_netmask
}

## Provision if required the shared private endpoints
Expand Down
25 changes: 25 additions & 0 deletions examples/central_vpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- BEGIN_TF_DOCS -->
## Requirements

No requirements.

## Providers

No providers.

## Modules

No modules.

## Resources

No resources.

## Inputs

No inputs.

## Outputs

No outputs.
<!-- END_TF_DOCS -->
56 changes: 30 additions & 26 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,22 @@ module "egress_vpc" {
source = "appvia/network/aws"
version = "0.3.0"

availability_zones = var.connectivity_config.egress.network.availability_zones
enable_ipam = var.connectivity_config.egress.network.ipam_pool_id != null
enable_nat_gateway = true
enable_transit_gateway = true
enable_transit_gateway_subnet_natgw = true
ipam_pool_id = var.connectivity_config.egress.network.ipam_pool_id
name = var.connectivity_config.egress.network.name
nat_gateway_mode = "all_azs"
private_subnet_netmask = var.connectivity_config.egress.network.private_netmask
public_subnet_netmask = var.connectivity_config.egress.network.public_netmask
tags = var.tags
transit_gateway_id = module.tgw.ec2_transit_gateway_id
vpc_cidr = var.connectivity_config.egress.network.vpc_cidr
vpc_netmask = var.connectivity_config.egress.network.vpc_netmask
availability_zones = var.connectivity_config.egress.network.availability_zones
enable_default_route_table_association = false
enable_default_route_table_propagation = false
enable_ipam = var.connectivity_config.egress.network.ipam_pool_id != null
enable_nat_gateway = true
enable_transit_gateway = true
enable_transit_gateway_subnet_natgw = true
ipam_pool_id = var.connectivity_config.egress.network.ipam_pool_id
name = var.connectivity_config.egress.network.name
nat_gateway_mode = "all_azs"
private_subnet_netmask = var.connectivity_config.egress.network.private_netmask
public_subnet_netmask = var.connectivity_config.egress.network.public_netmask
tags = var.tags
transit_gateway_id = module.tgw.ec2_transit_gateway_id
vpc_cidr = var.connectivity_config.egress.network.vpc_cidr
vpc_netmask = var.connectivity_config.egress.network.vpc_netmask
}

## Provision an ingress vpc if required
Expand All @@ -51,18 +53,20 @@ module "ingress_vpc" {
source = "appvia/network/aws"
version = "0.3.0"

availability_zones = var.connectivity_config.ingress.network.availability_zones
enable_ipam = var.connectivity_config.ingress.network.ipam_pool_id != null
enable_nat_gateway = false
enable_transit_gateway = true
ipam_pool_id = var.connectivity_config.ingress.network.ipam_pool_id
name = var.connectivity_config.ingress.network.name
private_subnet_netmask = var.connectivity_config.ingress.network.private_netmask
public_subnet_netmask = var.connectivity_config.ingress.network.public_netmask
tags = var.tags
transit_gateway_id = module.tgw.ec2_transit_gateway_id
vpc_cidr = var.connectivity_config.ingress.network.vpc_cidr
vpc_netmask = var.connectivity_config.ingress.network.vpc_netmask
availability_zones = var.connectivity_config.ingress.network.availability_zones
enable_default_route_table_association = false
enable_default_route_table_propagation = false
enable_ipam = var.connectivity_config.ingress.network.ipam_pool_id != null
enable_nat_gateway = false
enable_transit_gateway = true
ipam_pool_id = var.connectivity_config.ingress.network.ipam_pool_id
name = var.connectivity_config.ingress.network.name
private_subnet_netmask = var.connectivity_config.ingress.network.private_netmask
public_subnet_netmask = var.connectivity_config.ingress.network.public_netmask
tags = var.tags
transit_gateway_id = module.tgw.ec2_transit_gateway_id
vpc_cidr = var.connectivity_config.ingress.network.vpc_cidr
vpc_netmask = var.connectivity_config.ingress.network.vpc_netmask
}

## Share the transit gateway with the other principals
Expand Down

0 comments on commit dae44be

Please sign in to comment.