Skip to content

Commit

Permalink
fix: update vpn subnet and add lifecycle in acm
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Sep 6, 2023
1 parent 2927aea commit 77ce433
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module "vpn" {
split_tunnel_enable = true
cidr_block = "172.0.0.0/16"
vpc_id = module.vpc.vpc_id
subnet_ids = module.subnets.private_subnet_id
subnet_ids = module.subnets.public_subnet_id
route_cidr = ["0.0.0.0/0", "0.0.0.0/0"]
route_subnet_ids = module.subnets.private_subnet_id
route_subnet_ids = module.subnets.public_subnet_id
network_cidr = ["0.0.0.0/0"]
}
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ resource "aws_acm_certificate" "server" {
private_key = join("", tls_private_key.server[*].private_key_pem)
certificate_body = join("", tls_locally_signed_cert.server[*].cert_pem)
certificate_chain = join("", tls_self_signed_cert.ca[*].cert_pem)

lifecycle {
create_before_destroy = true
}
}

##-----------------------------------------------------------------------------
Expand Down

0 comments on commit 77ce433

Please sign in to comment.