mirror of
https://github.com/idanoo/fediservices.nz-infra
synced 2025-07-03 06:42:15 +00:00
Name resources
This commit is contained in:
parent
6d36a3aa71
commit
862470a8f7
1 changed files with 11 additions and 0 deletions
11
ec2.tf
11
ec2.tf
|
@ -9,12 +9,23 @@ 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
|
||||||
resource "aws_eip" "eip" {
|
resource "aws_eip" "eip" {
|
||||||
instance = aws_instance.instance.id
|
instance = aws_instance.instance.id
|
||||||
vpc = true
|
vpc = true
|
||||||
|
|
||||||
|
tags {Name = "status.fediservices.nz"}
|
||||||
}
|
}
|
||||||
|
|
||||||
# EBS Vol for persistance
|
# EBS Vol for persistance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue