test iam sts assume role

This commit is contained in:
heyethereum
2024-06-17 22:46:50 +08:00
parent d38aa58272
commit 3dffbc013d

View File

@@ -50,7 +50,7 @@ jobs:
- name: Start `nc` on EC2 to Listen and Save File
run: |
aws ssm send-command --instance-ids ${{ env.INSTANCE_ID }} --document-name "AWS-RunShellScript" --comment "Start netcat to listen and save file" --parameters 'commands=["sudo nc -l -p 1234 > /home/app-0.0.1-SNAPSHOT.jar"]'
aws ssm send-command --instance-ids ${{ env.INSTANCE_ID }} --document-name "AWS-RunShellScript" --comment "Start netcat to listen and save file" --parameters 'commands=["sudo nc -l 1234 > /home/app-0.0.1-SNAPSHOT.jar"]'
- name: Start SSM Port Forwarding
id: start-ssm-port-forwarding