Skip to content

bobtfish/terraform-ubuntu-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-ubuntu-ami

THIS MODULE IS DEPRECATED

Please see: https://github.com/terraform-community-modules/tf_aws_ubuntu_ami

Terraform module to get the current set of publicly available ubuntu AMIs.

This module grabs all of the AMIs listed at:

http://cloud-images.ubuntu.com/locator/ec2/

and then looks up the one you want given the input variables

Input variables:

  • region - E.g. eu-central-1
  • distribution - E.g. trusty
  • architecture - amd64/i386
  • virttype - hvm/pv
  • storagetype - instance-store/ebs-io1/ebs-ssd/ebs

Outputs:

  • ami_id

Example use:

module "ami" {
  source = "github.com/bobtfish/terraform-ubuntu-ami"
  region = "eu-central-1"
  distribution = "trusty"
  architecture = "amd64"
  virttype = "hvm"
  storagetype = "instance-store"
}

resource "aws_instance" "web" {
  ami = "${module.ami.ami_id}"
  instance_type = "m3.8xlarge"
}

About

Terraform module for finding public ubuntu AMIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published