0% found this document useful (0 votes)
4 views

CC

The document outlines a series of steps for setting up various AWS services, including creating a Python script in Cloud Shell, configuring an S3 bucket for static website hosting, managing a DynamoDB table, creating an AWS Lambda function and API Gateway, launching an EC2 instance with Docker, and setting up CloudFront for content delivery. Each section provides specific commands and configurations necessary for implementation. The instructions are presented in a sequential manner for clarity and ease of execution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

CC

The document outlines a series of steps for setting up various AWS services, including creating a Python script in Cloud Shell, configuring an S3 bucket for static website hosting, managing a DynamoDB table, creating an AWS Lambda function and API Gateway, launching an EC2 instance with Docker, and setting up CloudFront for content delivery. Each section provides specific commands and configurations necessary for implementation. The instructions are presented in a sequential manner for clarity and ease of execution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1st

(cloud shell)

->pwd
->mkdir rv
->cd rv
-> vi pap.py
type I
-> print("hello")
click "esc" and type " :wq "
->python3 pap.py

-----------------------------------------------------------------------------------
--------------------------------

2nd

(s3)

->Create Bucket, Disable "Block Public Access", Enable Bucket versioning,


-> Go to Bucket, Upload HTML File, Click on HTML File,
->Go to Bucket, Properties, Static Website host, Edit,
->Enable and Type HTML File and Save,
->Go to Permissions, Bucket policy, Edit, Policy generator
->{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bigger123/*"
}
]
}
->click on url again on properties -> static website host

-----------------------------------------------------------------------------------
--------------------------------

3rd

(DynamoDB)

->TableName -> In partion key type " usn "


->Select Table -> Explore Table Items -> Create Item
->Add New Attributes To It
->Go To " PartQL Editor " And Type " SELECT * from TableName "
->And Run It Should Show Attributes

-----------------------------------------------------------------------------------
--------------------------------
4th

(aws lambda)

->Create Function.
->Type Function Name. Select Python in Runtime. In Change Default Execution, select
Create New Role.
->In Additional Settings, select Enable Function URL, and in Auth Type, select
None. save
->Configurations, Function URL, Check URL Runs.

(API gateway)

->Go to API Gateway, Create API, Build REST API.


->After creating REST API, click Create Method, and select "Get", and select
"Lambda Function".
->Deploy API," New Stage ",
->Use URL, and Copy in New Tab.

-----------------------------------------------------------------------------------
--------------------------------

6th

(EC2)

->Launch instance, select key pair name, and click HTTP and HTTPS.
->Go to instance, press connect, and it runs a Linux machine.

-> sudo yum update –y


-> sudo yum install docker –y
-> sudo service docker start
-> sudo service docker status
(ctrl Z)
-> sudo su
-> docker version
-> docker pull nginx
-> docker images
-> docker run -d -p 80:80 nginx
-> docker ps

->After this, go to EC2 instance, connect, and copy public IP and paste it in a new
tab.

-----------------------------------------------------------------------------------
--------------------------------

8th

(S3)

->Give bucket name. ->In bucket, visionary, enable it, and keep all default.
->Go to bucket created, properties, edit, host static website, and enable.
->Type HTML name, and save changes.
->Go to objects, upload file,
->access URL from bucket, properties, static web hosting, site address, and access
the URL from new tab.

(cloudfront)

->create distribution,
->select origin domain, click legacy access in origin access.
->Create new UAI, and click yes update, keep all default, and create distribution.
->Copy distribution domain, and paste it in new tab.

You might also like