mirror of
https://github.com/idanoo/fediservices.nz-infra
synced 2025-07-04 07:12:16 +00:00
Readd tags
This commit is contained in:
parent
995d766b94
commit
a689038306
1 changed files with 9 additions and 1 deletions
10
ec2.tf
10
ec2.tf
|
@ -9,6 +9,14 @@ resource "aws_instance" "instance" {
|
||||||
subnet_id = element(aws_subnet.subnet.*.id, 1)
|
subnet_id = element(aws_subnet.subnet.*.id, 1)
|
||||||
key_name = var.ssh_key
|
key_name = var.ssh_key
|
||||||
vpc_security_group_ids = [aws_security_group.sg.id]
|
vpc_security_group_ids = [aws_security_group.sg.id]
|
||||||
|
|
||||||
|
tags = { Name = "status.fediservices.nz" }
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
tags,
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Elastic IP
|
# Elastic IP
|
||||||
|
@ -16,7 +24,7 @@ resource "aws_eip" "eip" {
|
||||||
instance = aws_instance.instance.id
|
instance = aws_instance.instance.id
|
||||||
vpc = true
|
vpc = true
|
||||||
|
|
||||||
tags { Name = "status.fediservices.nz" }
|
tags = { Name = "status.fediservices.nz" }
|
||||||
}
|
}
|
||||||
|
|
||||||
# EBS Vol for persistance
|
# EBS Vol for persistance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue