Skip to content

Commit

Permalink
update syntax of command sending
Browse files Browse the repository at this point in the history
  • Loading branch information
BrucePolygon committed Aug 20, 2024
1 parent 8e56cef commit afde89e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,23 @@ jobs:
# role-session-name: GithubActionsSession

- name: Configure devnet AWS credentials
# if: env.NETWORK == 'devnet'
uses: aws-actions/configure-aws-credentials@v1
# if: env.NETWORK == 'devnet'
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-1
aws-region: eu-west-1
role-to-assume: arn:aws:iam::657556092833:role/midendev-GithubActionsRole
role-session-name: GithubActionsSession

- name: Stop services
id: stop_services
run: |
aws ssm send-command \
--instance-ids ${{ env.INSTANCE_ID }} \
COMMAND_ID=$(aws ssm send-command \
--instance-ids i-0d50212756bccc552 \
--document-name "AWS-RunShellScript" \
--comment "Stop Miden services" \
--parameters '{"commands":[
"sudo systemctl stop miden-node",
"sudo systemctl stop miden-faucet"
]}' \
--output text
--parameters '{"commands":["sudo systemctl stop miden-node", "sudo systemctl stop miden-faucet"]}' \
--output text \
--query "Command.CommandId")
echo "command_id=$COMMAND_ID" >> $GITHUB_OUTPUT
- name: Install prerequisites
run: |
Expand Down

0 comments on commit afde89e

Please sign in to comment.