Git Product home page Git Product logo

tf_aws_ubuntu_ami's Introduction

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:

https://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/terraform-community-modules/tf_aws_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"
}

Short forms

This module also supports a couple of shortcuts for common configurations, where you know the instance_type you'd like to use, but don't want to bother looking up the virttype

ebs

module "ami" {
  source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs"
  region = "eu-central-1"
  distribution = "trusty"
  instance_type = "m3.large"
}

instance-store

module "ami" {
  source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/instance-store"
  region = "eu-central-1"
  distribution = "trusty"
  instance_type = "m3.large"
}

License

Apache2 - see the included LICENSE file for more details.

tf_aws_ubuntu_ami's People

Contributors

bobtfish avatar antonbabenko avatar errordeveloper avatar jof avatar seanknox avatar tmc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.