Cloud Computing Lab FILE
Cloud Computing Lab FILE
GREATER NOIDA
Affiliated to
1
INDEX
2
Experiment 1
Steps:
To open AWS Management Console for a service do one of the following:
In the search box on the navigation bar, enter all or part of the name of the
service. Under Services, choose the service that you want from the list of search
results.
Under Recently visited services, choose a service
name. Under All services, choose a service name.
On the navigation bar, choose Services to open a full list of services.
Then choose a service under Recently visited or All services.
Steps:
In search box on the navigation bar of the AWS Management Console, enter all or part of your search
terms. Do any of the following to refine your search and get more detail:
To narrow the results to the type of content that you want, choose one of the categories on
the left. To see more results for a particular category, choose See all n results by each
category heading.
To return to the main results list, choose Back in the top left corner.
To quickly navigate to popular features of a service, pause on the service name in the results and choose a
link. To get more detail about a documentation or AWS Marketplace result, pause on the result title.
Choose any link to navigate to your intended service, topic, or AWS Marketplace page.
Steps:
You can launch AWS CloudShell from the AWS Management Console using either one of the following two
methods:
Choose the AWS CloudShell icon on the console navigation bar.
Start typing "cloudshell" in the Find Services box and then choose the AWS CloudShell option.
Steps:
On the navigation bar, choose your account name.
Choose Billing Dashboard.
3
Use the AWS Billing and Cost Management dashboard to find a summary and a breakdown of your monthly
spending.
4
Experiment 2
Steps:
Select View
Instances. Wait for
the following:
Instance state: Running
Status check: 2/2 checks passed
5
Task 8. Access your EC2 instance
From the Details tab, copy the Public IPv4 address value of your instance to the clipboard.
Open a new tab in your web browser, paste the public IP address you just copied, and press
Enter. The webpage does not load. You must update the security group to be able to access
the page.
6
Experiment 3
Steps:
"GroupId": "sg-903004f8"
}
],
"ClientToken": null,
"InstanceType": "t1.micro",
"NetworkInterfaces": [],
"Placement": {
"Tenancy": "default",
"GroupName": null,
"AvailabilityZone": "us-west-2b"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-877166c8",
"AttachTime": "2013-07-19T02:42:39.000Z"
}
}
],
"Architecture": "x86_64",
"StateReason":
{
"Message": "pending",
"Code": "pending"
},
"RootDeviceName": "/dev/sda1",
"VirtualizationType": "hvm",
"RootDeviceType": "ebs",
"Tags": [
{
"Value": "MyInstance",
8
"Key": "Name"
}
],
"AmiLaunchIndex": 0
]
}
9
Experiment 4
Steps:
10
11
Experiment 5
Steps:
12
13
Experiment 6
Steps:
#!/bin/bash
yum update
-y
yum -y install httpd
systemctl enable
httpd systemctl
start httpd
echo '<html><h1>Hello World!</h1></html>' > /var/www/html/index.html
14
Task 4. Configure the security group
Configure a new security group:
Keep the default selection Create a new security
group. Select Review and Launch.
16
Experiment 7
Steps:
18
Experiment 8
Aim: Create a private cloud - Designing a custom VPC (Virtual Private Cloud).
Steps:
19
20
Experiment 9
Steps:
21
In the navigation pane on the left, choose User
groups. Choose the name of the S3-Support group.
Choose the Permissions tab.
The S3-Support group has the AmazonS3ReadOnlyAccess policy attached.
Under Policy Name, choose the link for the AmazonS3ReadOnlyAccess policy.
Choose the {} JSON tab.
This policy has permissions to Get and List for all resources in Amazon S3.
In the navigation pane on the left, choose User groups.
Choose the name of the EC2-Admin group.
Choose the Permissions tab.
Because this user is part of the S3-Support group in IAM, they have permissions to view a list of Amazon S3
buckets and their contents.
Now, test whether the user has access to Amazon
EC2. Choose the Services menu, and choose EC2.
23
Choose the Services menu, and choose S3.
An error message says You don't have permissions to list buckets because user-2 does not have
permissions to use Amazon S3.
You will now sign-in as user-3, who has been hired as your Amazon EC2
administrator. First, sign out user-2 from the console:
In the upper-right corner of the page, choose user-2.
Choose Sign Out.
24
Experiment 10
Steps:
25
Working with EBS in AWS.
Build a relational database server.
Create a private cloud - Designing a custom VPC (Virtual Private Cloud).
Create an IAM Group in Cloud.
Build a RESTFul serverless API on AWS.
Select POST from the new dropdown that appears, then click the checkmark.
Select Lambda Function for the integration type.
Check the box for Use Lambda Proxy integration.
Select the Region you are using for Lambda Region.
Enter the name of the function you created in the previous module, RequestUnicorn, for Lambda Function.
Choose Save.
visit /js/config.js under the base URL for your website and choose File, then choose Save Page As from your
browser.
An example of a complete config.js file is included below. Note, the actual values in your file will be different.
window._config = {
cognito: {
userPoolId: 'us-west-2_uXboG5pAb', // e.g. us-east-2_uXboG5pAb
userPoolClientId: '25ddkmj4v6hfsfvruhpfi7n4hv', // e.g. 25ddkmj4v6hfsfvruhpfi7n4hv region: 'us-west-2' // e.g. us-
east-2
},
api: {
invokeUrl: 'https://rc7nyt4tql.execute-api.us-west-2.amazonaws.com/prod' // e.g. https://rc7nyt4tql.execute-api.us-
west-2.amazonaws.com/prod,
}
};
Save your changes locally.
In the AWS Management Console, choose Services then select S3 under Storage.
Navigate to the website bucket and then browse to the js key prefix.
Choose Upload.
Choose Add files, select the local copy of config.js and then click Next.
26
Choose Next without changing any defaults through the Set permissions and Set properties sections.
27
28