Cloud Computing - Manual
Cloud Computing - Manual
Scroll down and click on Advance details → In the user data type this
bootstrap script…
➢ In the Buckets list, choose the name of the bucket that you want to enable
static website hosting for → Choose Properties → Under Static website
hosting, choose Edit → Choose Use this bucket to host a website →
Under Static website hosting, choose Enable → In Index document, enter
the file name of the index document, typically index.html → Click on
Save Changes.
➢ Choose Permissions → Under Block public access (bucket settings),
choose Edit → Clear Block all public access, and choose Save changes
→ Under Buckets, choose the name of your bucket →
Choose Permissions → Under Bucket Policy, choose Edit → To grant
public read access for your website, copy the following bucket policy.
➢ In the bucket list choose the bucket you’ve created → Under Objects →
Click on Upload → Select the index.html file that you’ve created →
Click on upload.
➢ Choose Properties → At the bottom of the page, under Static website
hosting, choose your Bucket website endpoint.
Your index document opens in a separate browser window.
➢ After finishing your task delete your S3 Bucket.
• To Terminate instance →
aws ec2 terminate-instances --instance-ids (your instance id)
➔ Type your instance id in
➢ If you’ve followed the steps perfectly, In your AWS account a new instance
will be created.
➢ After finishing your task delete the instance that you’ve created using CLI.
10. Create S3 bucket using CLI and perform upload and delete
objects.
• To delete Bucket →
➢ After finishing your given task delete your Elastic Beanstalk Environment.