How to setup AWS Cloud9 IDE for phython php and Lambda

AWS Cloud9 is a fully integrated development environment. Where you can code, build, deploy and test your components. As of today it can be integrated with multiple AWS resources, open source code and other 3 party resources and supports below resources,

Resources
AWS Lambda
Amazon Lightsail Instances
AWS CodeStar Projects
AWS CodePipeline
AWS CLI and aws-shell
AWS CodeCommit
GitHub
Amazon DynamoDB
Java
C++
Python
.NET Core
Node.js
PHP
Ruby
Go
TypeScript
AWS CDK
Docker
Working with Shared Environments
Developing with AWS Cloud9 in the AWS RoboMaker

Originally Cloud9 was an open source IDE and AWS acquired it in 2016 and integrated with AWS services. It works on top of an EC2 instance which can be either newly launched or connected with an existing EC2 server. Cloud9 IDE can be accessed from a browser and works only via internet/online as of today.

Setting up Cloud9 IDE

  1.  Select Cloud9 from AWS services and click on ‘Create environment’.

2. Name your environment or your workspace,

 

3. Choose the EC2 instance type, very important to configure it to hibernate after 30mins for cost saving.


4. Review the configuration settings and click on ‘Create environment’.

 


5. Once the Environment is created it will automatically launch / ssh into the ec2 instance and you can click ‘create file’  to start the coding.

 

 

6. You can as well parallely go to Service-EC2 instance where you can find an EC2 instance launched for your cloud9 IDE.

 

7.  Right Click on workspace/ environment – > New File and create the file of your choice and save it with appropriate extension for the IDE to automatically detect the run time environment.

 

8. An example for php file,

 

9. An example for python execution,

 

10. Cloud9 also supports Server less integration with Lambda, we can fully develop test and deploy them from here. Also any existing Lambda function can be automatically imported from the side panel.

 

11. You can delete the environment to cleanup all the resources created for could9 IDE as below.

 

 

Happy Learning !!!

Leave a Reply

Your email address will not be published. Required fields are marked *