find the right AMI for instance
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
11819f90d2
commit
df664bd2f6
18
main.tf
18
main.tf
|
@ -39,3 +39,21 @@ resource "aws_s3_bucket" "tf-state" {
|
|||
}
|
||||
|
||||
/* RESOURCES ------------------------------------*/
|
||||
|
||||
data "aws_ami" "debian" {
|
||||
most_recent = true
|
||||
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["debian-stretch-hvm-arm64-gp2-2019-04-28-63458"]
|
||||
}
|
||||
}
|
||||
|
||||
//resource "aws_instance" "dev-dapps" {
|
||||
// ami = "${data.aws_ami.ubuntu.id}"
|
||||
// instance_type = "t3.medium"
|
||||
//
|
||||
// tags = {
|
||||
// Name = "${var.name}-${format("%02d", count.index+1)}.${local.dc}.${var.env}.${local.stage}"
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -19,3 +19,10 @@ variable public_domain {
|
|||
description = "Public DNS Domain address"
|
||||
default = "dap.ps"
|
||||
}
|
||||
|
||||
/* ENVIRONMENT ----------------------------------*/
|
||||
|
||||
variable env {
|
||||
description = "Name of environment to create"
|
||||
default = "dapps"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue