File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ data "local_file" "unity_yaml" {
2
+ filename = " /home/ubuntu/.unity/unity.yaml"
3
+ }
4
+ locals {
5
+ unity_config = yamldecode (data. local_file . unity_yaml . content )
6
+ project = local. unity_config . project
7
+ venue = local. unity_config . venue
8
+ }
9
+
1
10
# Create an Application Load Balancer (ALB)
2
11
resource "aws_lb" "httpd_alb" {
3
12
name = " ${ var . deployment_name } -httpd-alb"
@@ -50,8 +59,8 @@ resource "aws_lb_listener" "httpd_listener" {
50
59
51
60
52
61
resource "aws_ssm_parameter" "mgmt_endpoint" {
53
- name = " /unity/cs /management/httpd/loadbalancer-url"
62
+ name = " /unity/${ local . project } / ${ local . venue } /management/httpd/loadbalancer-url"
54
63
type = " String"
55
64
value = " ${ aws_lb_listener . httpd_listener . protocol } ://${ aws_lb . httpd_alb . dns_name } :${ aws_lb_listener . httpd_listener . port } /management/ui"
56
65
overwrite = true
57
- }
66
+ }
You can’t perform that action at this time.
0 commit comments