정리
This commit is contained in:
9
modules/cgw/main.tf
Normal file
9
modules/cgw/main.tf
Normal 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
3
modules/cgw/outputs.tf
Normal file
@ -0,0 +1,3 @@
|
||||
output "cgw_id" {
|
||||
value = aws_customer_gateway.main.id
|
||||
}
|
3
modules/cgw/variables.tf
Normal file
3
modules/cgw/variables.tf
Normal file
@ -0,0 +1,3 @@
|
||||
variable "cgw_ip" {
|
||||
type = string
|
||||
}
|
Reference in New Issue
Block a user