Closed rmiyazaki6499 closed 4 years ago
Hi rmiyazaki6499, thank you for opening issue.
To resolve the issue, set IAM Role to your instance. Please use 1.0.1 version, and I'll update the READMD.md file soon about the issue.
Hello peterkimzz,
Thank you for the quick response!
I have set the IAM Role to the instance with AmazonSSMFullAccess
and unfortunately am running into the same error with 1.0.1...
When setting the Secret for INSTANCE_ID does the key need to have quotes ("i-xxxxxxx") or without quotes? (I have set them without quotes.
Again, thank you for your help!
- name: AWS SSM Send Command
uses: peterkimzz/aws-ssm-send-command@1.0.1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
instance-ids: ${{ secrets.INSTANCE_ID }}
comment: Blue/Green Deployment executed by Github Actions
working-directory: /home/ubuntu/api_production
command: /bin/sh deploy.sh
This is my working action script.
instance_id
is without quotes.
Okay great! Let me try that script.
Hmmm, I thought so. I will try it again.
Hi @peterkimzz,
So your script worked! I'm not sure sure on what was the cause of it but I did notice one of the differences was that you had omitted the id: ssm
portion of the yml file.
Either way, thank you so much for your help and awesome project!
Hello, First issue so apologize if I do anything wrong.
I have an AWS EC2 instance with a script I would like to run with github actions (primarily when anything is pushed to master). I have set my IAM user with the IAM role with
AmazonSSMFullAccess
I tried following the example script (I have tried both with peterkimzz/aws-ssm-send-command@1.0.1 and peterkimzz/aws-ssm-send-command@0.0.2) and I keep running into errors. Here is the first one:
And here are my errors with 0.0.2:
I have triple checked the instance id (set in Github Secrets as INSTANCE_ID with my i-xxx instance id).
Any suggestions or help with either something I am doing wrong or something I am missing would be greatly appreciated.