File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+
110# Create an Application Load Balancer (ALB)
211resource "aws_lb" "httpd_alb" {
312 name = " ${ var . deployment_name } -httpd-alb"
@@ -50,8 +59,8 @@ resource "aws_lb_listener" "httpd_listener" {
5059
5160
5261resource "aws_ssm_parameter" "mgmt_endpoint" {
53- name = " /unity/cs /management/httpd/loadbalancer-url"
62+ name = " /unity/${ local . project } / ${ local . venue } /management/httpd/loadbalancer-url"
5463 type = " String"
5564 value = " ${ aws_lb_listener . httpd_listener . protocol } ://${ aws_lb . httpd_alb . dns_name } :${ aws_lb_listener . httpd_listener . port } /management/ui"
5665 overwrite = true
57- }
66+ }
You can’t perform that action at this time.
0 commit comments