fix instance to be publicly availble from vpc
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
7ec6a7e72f
commit
bd5e899867
4
main.tf
4
main.tf
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue