Explore AWS Cloud9! Environment Creation with EC2 Instance
Tags: awscloud9, s3, cloudformation, ec2
Published: 2023-04-15 13:29:22

“ I have checked the documents of AWS to do the creation of the environment with ec2 instance . So I got the AWS Cloud9 IDE. Pricing of AWS Cloud9 depends on compute (ec2) and storage (ebs).”

AWS Cloud9 is a cloud-based integrated development environment that lets you write, run and debug your code with just a browser. It includes a code editor, debugger and terminal. Cloud9 comes prepackaged with essential tools for popular programming languages including JavaScript, python, php and more so you don’t need to install files or configure your development machine.

In this post, you will get to know how to explore aws cloud9! environment creation with ec2 instance. Here I have used a s3 bucket for accessing the bucket using cloud9 IDE.

#Architecture Overview
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9iz1bywozd9nl9nobb5h.png)
The architecture diagram shows the overall deployment architecture with data flow, aws cloud9, amazon s3, cloudformation and ec2.

#Solution overview
The blog post consists of the following phases:
1. Create Environment with Required Parameters in AWS Cloud9
2. List the S3 Bucket in Cloud9 IDE and Walkthrough the Settings of Cloud9 IDE

##Phase 1: Create Environment with Required Parameters in AWS Cloud9  
1. Open the AWS Cloud9 console and create the environment with environment type, instance type, platform, timeout and vpc details. Check the cloudformation and ec2 created after creating the environment in cloud9.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iw6mjp1n0tf6qlwjbbpw.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xenfwbu4yufoe0crrzst.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g8m7h5v5g6k44b8xczma.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ufw2gpxpyzwfb3gt56ba.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7w1ptm8byoyl9p09db0.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bh4zb49bhjzc75uu3mdf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1nh6ehbt5pyqok13npg.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwob4hmjmbby7myd9ng3.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z972bpi0cdqd5cw74xw1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b7pnjuhx4bp190kcaocy.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g737yt2u5hvjj0akb6so.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j0m2pe7nee5dhjvxii6f.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/baxajxo9ksqsdqnocwg9.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wu86aucvycxl1vev1pj9.png)

##Phase 2: List the S3 Bucket in Cloud9 IDE and Walkthrough the Settings of Cloud9 IDE
1. Open the Cloud9 IDE and check the s3 bucket list from cloud9 terminal. Create a s3 bucket and check the same from cloud9 terminal. Also you can walkthrough the cloud9 IDE preferences and project settings.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3wf7bw0uefo6fyzuoklm.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/adycz94fiuq2s5o3xcm5.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0dda0tqq08rah7fhsnb.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dstbe0jcbbmq6js9qdno.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ywrtc1c5i6xvdhj9wlq3.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cfh6eq8ksqjfpyrqef4v.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uddz88nobd5ykk7wgnov.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idqqinj8359ch2sbkpl4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/79azyf9ifstlad23z6tl.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7xgblpzwnf3x5pkehz1a.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/apb8n4j9tpuuwjrx3wu2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u4nlkrydik34kyi0m6nc.png)

#Clean-up
Delete the Cloud9 Environment and S3 Bucket.

#Pricing
I review the pricing and estimated cost of this example. 

Cost of AWS Cloud9 = $0.00

Cost of EC2 Instance = $0.0116

Cost of EBS Volume = $0.10

Cost of S3 = $0.01

Total Cost = $(0.00 + 0.0116 + 0.10 + 0.01) = $0.1216

#Summary
In this post, I showed “how to explore aws cloud9! environment creation with ec2 instance”.

For more details on AWS Cloud9, Checkout Get started AWS Cloud9, open the [AWS Cloud9 console](https://us-east-1.console.aws.amazon.com/cloud9control/home?region=us-east-1#/product). To learn more, read the [AWS Cloud9 documentation](https://docs.aws.amazon.com/cloud9/?icmpid=docs_homepage_devtools).

Thanks for reading!

Connect with me: [Linkedin](https://www.linkedin.com/in/gargee-bhatnagar-6b7223114)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38sdi4nsp89fnui8h7dk.png)