Skip to content

Commit 9b0c7e7

Browse files
committed
aws/terraform: tag bootstrap EIP
Otherwise it is going to leak when bootstrap fails and the terraform bootstrap destroy stage is not run. Fallout from 50c0a9d.
1 parent deae213 commit 9b0c7e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

data/data/aws/bootstrap/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,5 +256,12 @@ resource "aws_eip" "bootstrap" {
256256
instance = aws_instance.bootstrap.id
257257
public_ipv4_pool = var.aws_public_ipv4_pool
258258

259+
tags = merge(
260+
{
261+
"Name" = "${var.cluster_id}-bootstrap-eip"
262+
},
263+
local.tags,
264+
)
265+
259266
depends_on = [aws_instance.bootstrap]
260267
}

0 commit comments

Comments
 (0)