Fix various bugs

This commit is contained in:
Radon Rosborough 2021-07-17 08:39:28 +00:00
parent 0cf0d1bc83
commit aeb4f4ab6a
3 changed files with 14 additions and 4 deletions

View File

@ -49,7 +49,6 @@ man
moreutils moreutils
nodejs nodejs
packer packer
prettier
psmisc psmisc
python3-pip python3-pip
pwgen pwgen

View File

@ -38,9 +38,19 @@ source "amazon-ebs" "ubuntu" {
source_ami = "${data.amazon-ami.ubuntu.id}" source_ami = "${data.amazon-ami.ubuntu.id}"
ssh_username = "ubuntu" ssh_username = "ubuntu"
tags { tag {
BillingCategory = "Riju" key = "BillingCategory"
BillingCategory = "Riju:AMI" value = "Riju"
}
tag {
key = "BillingSubcategory"
value = "Riju:AMI"
}
tag {
key = "Name"
value = "riju-${local.timestamp}"
} }
} }

View File

@ -57,6 +57,7 @@ resource "aws_instance" "dev_server" {
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
ami, ami,
instance_state,
security_groups, # legacy security_groups, # legacy
] ]
} }