Skip to content

Instantly share code, notes, and snippets.

@fionn
Last active May 5, 2020 09:04
Show Gist options
  • Save fionn/1d8d6a3fa27866862198ebe64f9a45fe to your computer and use it in GitHub Desktop.
Save fionn/1d8d6a3fa27866862198ebe64f9a45fe to your computer and use it in GitHub Desktop.
Deploy the latest Arch Linux AMI on EC2
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