This commit is contained in:
2023-01-22 03:27:54 +09:00
parent d3f56ecc0c
commit 09e9dcf9b5
28 changed files with 188 additions and 247 deletions

9
modules/cgw/main.tf Normal file
View File

@ -0,0 +1,9 @@
resource "aws_customer_gateway" "main" {
bgp_asn = 65000
ip_address = var.cgw_ip
type = "ipsec.1"
tags = {
Name = "cgw"
}
}

3
modules/cgw/outputs.tf Normal file
View File

@ -0,0 +1,3 @@
output "cgw_id" {
value = aws_customer_gateway.main.id
}

3
modules/cgw/variables.tf Normal file
View File

@ -0,0 +1,3 @@
variable "cgw_ip" {
type = string
}