Commit 928df804 authored by Joaquín Fernández Campo's avatar Joaquín Fernández Campo Committed by Anton Babenko

Issue #56: Added tags for elastic ips (#61)

* Issue #56: Added tags for elastic ips
parent 4c8f4578
...@@ -202,6 +202,8 @@ resource "aws_eip" "nat" { ...@@ -202,6 +202,8 @@ resource "aws_eip" "nat" {
count = "${(var.enable_nat_gateway && !var.reuse_nat_ips) ? (var.single_nat_gateway ? 1 : length(var.azs)) : 0}" count = "${(var.enable_nat_gateway && !var.reuse_nat_ips) ? (var.single_nat_gateway ? 1 : length(var.azs)) : 0}"
vpc = true vpc = true
tags = "${merge(var.tags, map("Name", format("%s-%s", var.name, element(var.azs, (var.single_nat_gateway ? 0 : count.index)))))}"
} }
resource "aws_nat_gateway" "this" { resource "aws_nat_gateway" "this" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment