Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variable "region" { }
- provider "aws" {
- region = "${var.region}"
- }
- module "ami" {
- source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs"
- region = "${var.region}"
- distribution = "trusty"
- instance_type = "m1.small"
- }
- resource "aws_instance" "web" {
- ami = "${module.ami.ami_id}"
- instance_type = "m1.small"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement