Skip to content

Commit

Permalink
Fix: deploy modules and print outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
suizman authored and iknite committed Feb 19, 2019
1 parent 0fa0261 commit 6026e41
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ module "inmemory-storage" {
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"
}

module "agent-publisher" {
Expand All @@ -123,6 +124,7 @@ module "agent-publisher" {
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"

command="agent publisher"
config = <<-CONFIG
Expand Down Expand Up @@ -153,6 +155,7 @@ module "agent-monitor" {
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"

command="agent monitor"
config = <<-CONFIG
Expand Down Expand Up @@ -183,6 +186,7 @@ module "agent-auditor" {
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"

command="agent auditor"
config = <<-CONFIG
Expand Down
17 changes: 17 additions & 0 deletions deploy/aws/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ output "riot" {
value = "${module.riot.public_ip}"
}

output "inmemory-storage" {
value = "${module.inmemory-storage.public_ip}"
}

output "agent-publisher" {
value = "${module.agent-publisher.public_ip}"
}

output "agent-monitor" {
value = "${module.agent-monitor.public_ip}"
}

output "agent-auditor" {
value = "${module.agent-auditor.public_ip}"
}


0 comments on commit 6026e41

Please sign in to comment.