mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
added outputs vars
This commit is contained in:
parent
b6e221fe77
commit
6e6942507e
4 changed files with 8 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
resource "aws_internet_gateway" "demo_gw" {
|
||||
resource "aws_internet_gateway" "demo_igw" {
|
||||
vpc_id = var.demo_vpc_id
|
||||
|
||||
tags {
|
||||
|
|
|
|||
3
terraform/aws/new-igw/output.tf
Normal file
3
terraform/aws/new-igw/output.tf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
output "demo_igw_id" {
|
||||
value = "${aws_internet_gateway.demo_igw.id}"
|
||||
}
|
||||
|
|
@ -7,8 +7,7 @@ resource "aws_eip" "demo_gw_eip" {
|
|||
}
|
||||
|
||||
// Create a NAT GW in public1 and public2 subnets
|
||||
resource "aws_nat_gateway" "ease_prod_vpc_nat_gws" {
|
||||
count = length(var.ease_prod_vpc_public_subnets)
|
||||
resource "aws_nat_gateway" "demo_natgw" {
|
||||
allocation_id = aws_eip.demo_gw_eip.id
|
||||
# feed coreos_subnet public subnet ID
|
||||
subnet_id = var.coreos_subnet_id
|
||||
|
|
|
|||
3
terraform/aws/new-natgw/output.tf
Normal file
3
terraform/aws/new-natgw/output.tf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
output "demo_natgw_id" {
|
||||
value = "${aws_nat_gateway.demo_natgw.id}"
|
||||
}
|
||||
Loading…
Reference in a new issue