-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutput.tf
59 lines (48 loc) · 1.77 KB
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
output "id" {
description = "ID of the created instance"
value = "${module.server.id}"
}
output "availability_zone" {
description = "Availability zone of the created instance"
value = "${module.server.availability_zone}"
}
output "key_name" {
description = "Key name of the created instance"
value = "${module.server.key_name}"
}
output "security_groups" {
description = "List of associated security groups of the created instance"
value = ["${module.server.security_groups}"]
}
output "tags" {
description = "List of tags for the created instance"
value = ["${module.server.tags}"]
}
output "generated_cloud_config" {
description = "The rendered cloudinit config"
value = "${module.server.generated_cloud_config}"
}
output "generated_cloud_init_config" {
description = "The rendered cloud-init config"
value = "${module.server.generated_cloud_init_config}"
}
output "generated_ansible_playbook" {
description = "The rendered ansible playbook"
value = "${module.server.generated_ansible_playbook}"
}
output "eip_public_ip" {
description = "The public Elastic IP address"
value = "${aws_eip.elastic_ip.public_ip}"
}
output "api_gateway_base_url" {
description = "The Api Gateway base url"
value = "${aws_api_gateway_deployment.deployment.invoke_url}"
}
output "api_gateway_start_server_url" {
description = "The Api Gateway start url"
value = "${aws_api_gateway_deployment.deployment.invoke_url}?action=start®ion=${var.aws_region}&instanceId=${module.server.id}"
}
output "api_gateway_stop_server_url" {
description = "The Api Gateway stop url"
value = "${aws_api_gateway_deployment.deployment.invoke_url}?action=stop®ion=${var.aws_region}&instanceId=${module.server.id}"
}