Advertisement
Guest User

Untitled

a guest
May 26th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. variable "region" { }
  2.  
  3. provider "aws" {
  4. region = "${var.region}"
  5. }
  6.  
  7. module "ami" {
  8. source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs"
  9. region = "${var.region}"
  10. distribution = "trusty"
  11. instance_type = "m1.small"
  12. }
  13.  
  14. resource "aws_instance" "web" {
  15. ami = "${module.ami.ami_id}"
  16. instance_type = "m1.small"
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement