Skip to content

Commit

Permalink
add the data resources
Browse files Browse the repository at this point in the history
  • Loading branch information
parabolic committed May 18, 2019
1 parent 9ce2c55 commit 856fe76
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions terraform/ec2_instance_cloudwatch_agent/data.tf
@@ -0,0 +1,21 @@
data "aws_ami" "ubuntu" {
most_recent = true

filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-*-18.04-amd64-server-*"]
}

owners = [
"099720109477",
]
}

data "template_file" "cloud-init" {
template = "${file("${path.module}/templates/cloud_init.yaml")}"

vars {
username = "${module.label.id}"
password = "${random_id.http_password.hex}"
}
}

0 comments on commit 856fe76

Please sign in to comment.