I'm trying to deploy and run an AWS Lambda function from Amazon's new **Cloud9* cloud IDE. https://aws.amazon.com/cloud9/
After setting up my Cloud9 account and running a sample Lambda function from a template I've got an error message:
HTTPSConnectionPool(host='iam.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPSConnect object at 0x7fa6a1f79e50>, 'Connection to iam.amazonaws.com timed out. (connection timeout = 60)')).
Maybe, there is some issue with an IAM role? Maybe I should open port 443? But where?
UPD:
Finally I've found the source of the problem.
AWS Cloud9 Tutorial says:
We recommend you change the default network ACL's inbound rule 100 to the following settings to allow only SSH traffic:
Type: SSH (22) Protocol: TCP (6) Port Range: 22
So I did this because I expected an outbound traffic to be allowed. But there was no connection. After I allowed all inbound traffic in Network ACL settings in AWS VPC Console - Cloud9 started to see the Internet.
My question is still open:
What is the best practice to enable an Internet access to AWS Cloud9 IDE and not loose my code privacy?