Hi Bro,
i am trying to execute a private docker image hosted on amazon ECR ,but problem is when i execute it ,i see no logs getting generated ,neither any failure in AWS cloud-watch or scar logs..my suspicion is scar not executing the private docker image on ECR
Below are core steps with which i run or execute my private image ,with scar i am not getting the output in AWS lambda or cloud-watch help or suggest alternate action needed to make this private docker image on AWS lambda
- aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
- aws configure set default.region us-west-2
- aws configure set default.output json
- eval $(aws ecr get-login --no-include-email --region us-west-2)
- docker login 8236.dkr.ecr.us-west-2.amazonaws.com -u AWS -p $PWD
-docker run 8236.dkr.ecr.us-west-2.amazonaws.com /abc-gat:latest
here is the command
~ $ scar init -n SREBlackBoxTester -i 8236.dkr.ecr.us-west-2.amazonaws.com/abc-gat:latest"
~ $ scar log -n SREBlackBoxTester
~ $ scar rm -n SREBlackBoxTester
Log group '/aws/lambda/Tester' successfully deleted.
Function 'Tester' successfully deleted.
Hi Bro,
i am trying to execute a private docker image hosted on amazon ECR ,but problem is when i execute it ,i see no logs getting generated ,neither any failure in AWS cloud-watch or scar logs..my suspicion is scar not executing the private docker image on ECR
Below are core steps with which i run or execute my private image ,with scar i am not getting the output in AWS lambda or cloud-watch help or suggest alternate action needed to make this private docker image on AWS lambda
- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
- aws configure set default.region us-west-2
- aws configure set default.output json
- eval $(aws ecr get-login --no-include-email --region us-west-2)
- docker login 8236.dkr.ecr.us-west-2.amazonaws.com -u AWS -p $PWD
-docker run 8236.dkr.ecr.us-west-2.amazonaws.com /abc-gat:latest
here is the command
~ $ scar init -n SREBlackBoxTester -i 8236.dkr.ecr.us-west-2.amazonaws.com/abc-gat:latest"
~ $ scar log -n SREBlackBoxTester
~ $ scar rm -n SREBlackBoxTester
Log group '/aws/lambda/Tester' successfully deleted.
Function 'Tester' successfully deleted.