From 050723abc48aa95a843e54382ce20e6863adf4d0 Mon Sep 17 00:00:00 2001 From: Umang Mistry Date: Thu, 23 May 2024 15:33:19 -0500 Subject: [PATCH] testing ssm commands with new dev instance --- bitbucket-pipelines.yml | 24 ++++++++++++++++++++---- streamlit/constants.py | 8 +++++++- streamlit/interface_0.py | 1 - 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 2ea362a..e1de89b 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -16,7 +16,15 @@ definitions: export AWS_SECRET_ACCESS_KEY=$(echo $STS_OUTPUT | jq -r '.Credentials.SecretAccessKey'); export AWS_SECURITY_TOKEN=$(echo $STS_OUTPUT | jq -r '.Credentials.SessionToken'); export AWS_REGION='us-east-2'; - steps: + - script: &ssm-send-command + aws ssm send-command --document-name "AWS-RunShellScript" --instance-ids $DEV_INSTANCE_ID_TF --region $AWS_DEFAULT_REGION --parameters commands='[ + "sudo -u ubuntu -i <