@@ -141,8 +141,8 @@ resource "null_resource" "main_service_setup" {
141141 sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:./amazon-cloudwatch-agent.json
142142
143143 # Get and run the sample application with configuration
144- aws s3 cp ${ var . sample_app_zip } ./node-sample-app.zip
145- unzip -o node-sample-app.zip
144+ aws s3 cp ${ var . sample_app_zip } ./node-sample-app-delete-me .zip
145+ unzip -o node-sample-app-delete-me .zip
146146
147147 # Enter appropriate service folder
148148 cd frontend-service
@@ -182,7 +182,7 @@ resource "null_resource" "main_service_setup" {
182182 tmux send-keys -t frontend 'export AWS_REGION="$${AWS_REGION}"' C-m
183183 tmux send-keys -t frontend 'export TESTING_ID="$${TESTING_ID}"' C-m
184184 tmux send-keys -t frontend 'export OTEL_NODE_DISABLED_INSTRUMENTATIONS=fs,dns,express' C-m
185- tmux send-keys -t frontend 'export OTEL_SERVICE_NAME=node-sample-application- ${ var . test_id } ' C-m
185+ tmux send-keys -t frontend 'export OTEL_SERVICE_NAME="$${SERVICE_NAME}" ' C-m
186186 tmux send-keys -t frontend 'export OTEL_TRACES_SAMPLER=always_on' C-m
187187 tmux send-keys -t frontend 'node --require "@aws/aws-distro-opentelemetry-node-autoinstrumentation/register" index.js' C-m
188188
@@ -272,8 +272,8 @@ resource "null_resource" "remote_service_setup" {
272272 sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:./amazon-cloudwatch-agent.json
273273
274274 # Get and run the sample application with configuration
275- aws s3 cp ${ var . sample_app_zip } ./node-sample-app.zip
276- unzip -o node-sample-app.zip
275+ aws s3 cp ${ var . sample_app_zip } ./node-sample-app-delete-me .zip
276+ unzip -o node-sample-app-delete-me .zip
277277
278278 # Enter appropriate service folder
279279 cd remote-service
0 commit comments