Skip to content

Instantly share code, notes, and snippets.

@echo-devnull
Created June 9, 2016 09:07
Show Gist options
  • Save echo-devnull/31da4452b836511aed3dc0dee0c18a18 to your computer and use it in GitHub Desktop.
Save echo-devnull/31da4452b836511aed3dc0dee0c18a18 to your computer and use it in GitHub Desktop.
resource "aws_instance" "ftp" {
ami = "ami-752dbe06"
instance_type = "t2.medium"
security_groups = ["${aws_security_group.ftp.name}"]
user_data = "${file("cloud-config.yml")}"
tags {
Name = "carsom-ftp-${count.index + 1}"
Env = "carsom"
role = "ftp"
company = "carsom"
Ansible = "yes"
}
root_block_device {
volume_size = 32
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment