Last active
May 5, 2020 09:04
-
-
Save fionn/1d8d6a3fa27866862198ebe64f9a45fe to your computer and use it in GitHub Desktop.
Deploy the latest Arch Linux AMI on EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_ami" "arch" { | |
owners = ["093273469852"] # Uplink Labs | |
most_recent = true | |
filter { | |
name = "name" | |
values = ["arch-linux-hvm-*"] | |
} | |
filter { | |
name = "root-device-type" | |
values = ["ebs"] | |
} | |
} | |
resource "aws_instance" "arch" { | |
ami = data.aws_ami.arch.id | |
instance_type = "t2.micro" | |
key_name = aws_key_pair.xxx.key_name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment