mirror of
https://github.com/idanoo/fediservices.nz-infra
synced 2025-07-02 06:12: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)
|
||||
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
|
||||
resource "aws_eip" "eip" {
|
||||
instance = aws_instance.instance.id
|
||||
vpc = true
|
||||
|
||||
tags {Name = "status.fediservices.nz"}
|
||||
}
|
||||
|
||||
# EBS Vol for persistance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue