mirror of
https://github.com/idanoo/fediservices.nz-infra
synced 2025-07-01 22:02:15 +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)
|
||||
key_name = var.ssh_key
|
||||
vpc_security_group_ids = [aws_security_group.sg.id]
|
||||
|
||||
tags = { Name = "status.fediservices.nz" }
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
tags,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
# Elastic IP
|
||||
|
@ -16,7 +24,7 @@ resource "aws_eip" "eip" {
|
|||
instance = aws_instance.instance.id
|
||||
vpc = true
|
||||
|
||||
tags { Name = "status.fediservices.nz" }
|
||||
tags = { Name = "status.fediservices.nz" }
|
||||
}
|
||||
|
||||
# EBS Vol for persistance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue