fix typo
This commit is contained in:
parent
2f9e17c50a
commit
96b12f0d61
9
main.tf
9
main.tf
|
@ -123,22 +123,23 @@ data "aws_ami" "latest_ecs" {
|
|||
|
||||
data "aws_ami" "ubuntu" {
|
||||
most_recent = true
|
||||
owners = ["099720109477"] # Cannonical / Ubuntu
|
||||
owners = ["099720109477"]
|
||||
|
||||
# Ubuntu AMI ID search
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["ubuntu/images/hvm-ssd/ubuntu-focal-24.04-amd64-server-*"]
|
||||
values = ["ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*"]
|
||||
}
|
||||
|
||||
filter {
|
||||
name = "virtualization-type"
|
||||
values = ["hvm"]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
resource "aws_instance" "ubuntu_instance" {
|
||||
ami = data.aws_ami.ubuntu.ami # Ubuntu "ami-0a0e5d9c7acc336f1"
|
||||
ami = data.aws_ami.ubuntu.id
|
||||
# Ubuntu "ami-0a0e5d9c7acc336f1"
|
||||
# ami = data.aws_ami.latest_ecs.ami # Amazon Linux
|
||||
instance_type = var.instance_size
|
||||
subnet_id = aws_subnet.public_subnet.id
|
||||
|
|
Loading…
Reference in New Issue