SSL proxy causing issues with deploy
See original GitHub issueDescription
I know there are some issues already created for ‘sam build’ in an environment with an SSL intercept and I think I have resolved those on my local Windows machine, but I don’t seem to be able to get around this error when using ‘sam deploy’ I am getting this error:
Botocore Exception : SSL validation failed for https://cloudformation.us-east-2.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)
I don’t see any way to get boto to be aware of my cert bundle that got me around the other tools. It would be THE BEST if there was a --verify-ssl-cert=false
that could be passed to all the subsequent tools that sam depends on.
Maybe I need to hard code a boto flag and recompile?
Steps to reproduce
- Have an untrusted intercepting proxy.
- try to deploy with
sam deploy --template-file packaged.yaml --stack-name demo-stack --capabilities CAPABILITY_IAM --debug
Observed result
Botocore Exception : SSL validation failed for https://cloudformation.us-east-2.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)
Expected result
Success deploying
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: Windows 10
sam --version
: SAM CLI, version 0.43.0
Add --debug flag to command you are running
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:9 (2 by maintainers)
@jfuss I tried setting
ca_bundle
in my.aws/config
as well, but unfortunately that didn’t work either. We use IronPort devices at work which are MITM’ing all SSL traffic and we’ve even whitelisted ‘cloudformation.us-east-1.amazonaws.com’, but it’s still not working.The only thing that does seem to work is using
aws --no-verify-ssl cloudformation deploy --template-file packaged-template.yml ....
For me, any of the techniques seting env variable or putting in config file WORKS FOR AWS CLI ONLY but DOESN’T WORK for SAM CLI
similar as for jplock
–region parameter not to talk to wrong region didnt help
Are you saying that both ENV or config should work also for SAM CLI?