fix instance to be publicly availble from vpc

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-28 18:32:47 -04:00
parent 7ec6a7e72f
commit bd5e899867
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 3 additions and 1 deletions

View File

@ -175,11 +175,13 @@ resource "aws_security_group" "dap_ps_dev" {
resource "aws_instance" "dap_ps_dev" {
ami = "${data.aws_ami.ubuntu.id}"
instance_type = "${var.instance_type}"
availability_zone = "${var.zone}"
key_name = "${aws_key_pair.admin.key_name}"
availability_zone = "${var.zone}"
security_groups = ["${aws_security_group.dap_ps_dev.name}"]
associate_public_ip_address = true
tags = {
Name = "node-01.${var.zone}.${var.env}.test"
}