CSM Lab Manual
CSM Lab Manual
CERTIFICATE
Certified that this is the bonafide record of work done by the above student in CCS336-
CLOUD SERVICE MANAGEMENT during the year 2023 - 2024.
EXAMINERS
Internal: External:
1
INDEX
S Mark out
Date Name of the Experiment Page No Signature
No Of 10
2
CREATE A CLOUD ORGANISATION IN
AWS/GOOGLE CLOUD OR ANY
EXP NO:1
EQUIVALENT OPEN SOURCE SOFTWARE
DATE: LIKE OPENSTACK, EUCALYPTUS,OPEN
NEBULA WITH ROLE BASED ACTIONS
AIM:
PROCEDURE:
3
1(b). For creating the account enter the E-mail Id and verify your id
using verification code sent by AWS to the corresponding E-mail Id.
1(c). After the verification ,Enter your details and then fill up your account details
for the Identity verification. It can charge 2rupee from your account for the card
verification.
4
Then the aws account is created.
2(b). After entering into the aws management consol then search for IAM in
the services.
5
2(c).The dash board of the IAM is displayed as follows.
2(d). Then click on the user and then under this, click on the create new user and enter
the user name.
6
2(e). Then click on the next button.Click on the add user to the group, After
that click on the create group option.
2(f). Then the create user group with the user group name.After entering the name
you need to specify the permission policies as EC2 with read only access.
7
2(g). Click on the create user group and you will be redirected into the review and create page
.Under this click on the create user, then the user will be created.
3. ADD THE USER TO THE USER GROUP WITH ROLE BASED ACCESS.
3(a). To add the users into the group click on the add users
8
3(b). Then add the existing group to the user group and click on Add users option, now
the user is added into the group with the role based action.
3(c) We can view the summary of the user group which is created, by clicking on the user
groups on the dashboard.
9
RESULT:
Thus the organization was created in the amazon aws with the role based actions.
10
CREATE A COST-MODEL FOR A WEB
EXP NO:2 APPLICATION USING VARIOUS
DATE: SERVICES AND MAKE AN ANALYSIS FOR
COST-
BENEFIT.
AIM:
To create a Cost-model for a web application using various services and make a
analysis for Cost-benefit.
PROCEDURE:
Creating a cost-model for a web applicationon in AWS involves estimating the costs
of using various AWS services for the application. Here's a general process to create a cost-
model and do cost-benefitt analysis:
11
3. Create a cost-model: Once you have estimated the costs of each
service, you can create a costmodel that summarizes the total costs.
You can use a spreadsheet or a cloud cost management tool to create
the cost-model.
4. Do cost-benefit analysis: after creating the cost-model, you can do a
cost-benefit analysis to determine if the benefits of using AWS
services outweigh the costs. You can compare the costs of using
AWS services to the costs of running the application on-premises or
using a different cloud provider.
Python code:
import boto3
session = boto3.Session(
aws_access_key_id='YOUR_ACC
ESS_KEY',
aws_secret_access_key='YOUR_S
ECRET_KEY',
region_name='us-east-1'
)
12
model group_by = [{'Type':
'DIMENSION', 'Key':
'SERVICE'}] # Get the cost and usage
data response =
cost_explorer.get_cost_and_usage (
TimePeriod=time_period,
Granularity=granularity,
Metrics=metrics, GroupBy=group_by
)# Print the cost and usage data
print(response) Output:
{
'ResultsByTime': [
{
'TimePeriod': {
'Start': '2022-01-01',
'End': '2022-12-31',
'TimeUnit': 'MONTHS'
},
'Groups': [
{
'Keys': [
'AmazonEC2'
],
'Metrics': { 'BlendedCost':
{
'Amount': '1234.56',
'Unit': 'USD'
},
'UsageQuantity': {
'Amount': '1000.0',
'Unit': 'Hours'
13
}
}
},
{
'Keys': [
'AWSLambda'
],
'Metrics': { 'BlendedCost':
{
'Amount': '789.0',
'Unit': 'USD'
},
'UsageQuantity': {
'Amount': '5000000',
'Unit': 'requests'
}
}
}
]
}
],
'ResponseMetadata': {
'RequestId': 'abcdefg-1234-5678-
90ab-cdefghijkl',
'HTTPStatusCode': 200,
'HTTPHeaders': {
'content-type':
'text/xml;charset=UTF-8',
'content-length': '1234',
'date': 'Tue, 15 Feb 2022
12:34:56 GMT'
14
},
'RetryAttempts': 0
Result
Thus, Cost-model for a web application using various services created and
analysis was implemented successfully.
15
EXP NO:3 CREATE ALERTS FOR USAGE OF CLOUD
DATE: RESOURCES
AIM:
To create alerts for usage of cloud resources.
PROCEDURE:
Step-(1):Login into the aws management console.
Step-(3):Under the sns click on the create topic with standard type.
16
Step-(4):Enter the topic name and click create to proceed further,then the topic is created.
Step-(5):Then the next step is to create the subscription.To do this click on the create
subscription.
Select the protocol as E-mail and then enter the root e-mail id, then click on the create
subscription option.
17
The conformation mail will be sent after clicking on the create subscription button. Now go
to your mail box and check the mail of aws, also click on the confirm subscription Button.
Now the topic has been successfully created with an subscription id as given below
18
Step-(6): Search for the cloud watch in the services for creating the alarms for alert the
billing of the cloud resource usage.
Step-(7): Click on the create alarm option in the cloud watch.Specify the conditions and
metric for the alarm.
19
Step-(8): Click on next and under the select metric click on the sns.
After this selct your metric for the alarm as shown above.
20
Step-(10): Set the threshold value as 500 or 1 (“as you wish”) and click on the greater than
or equal option.
Step-(11): Then click on the next and choose the topic for sending the notification.
21
Step-(12): After configuring click on the create alarm.
22
RESULT:
Thus the alerts for usage of cloud resources was created successfully.
23
EXP NO:4 CREATE BILLING ALERTS FOR
DATE: YOUR CLOUD ORGANIZATION
AIM:
To create billing alerts for the cloud organization.
PROCEDURE:
Step-(1): Login into the aws management console.
Step-(3): Under the sns click on the create topic with standard type.
24
Step-(4): Enter the topic and click create to proceed further, then the topic is created.
Step-(5): Then the next step is to create the subscription. To do this click on the create
subscription.
select the protocol as E-mail and then enter the root e-mail id,then click on the create
subscription option.
25
The conformation mail will be send after clicking on the create subscriptio. Go to your mail
box and check the mail of aws, also click on the confirm subscription.
26
Step-(6): Search for the cloud in the services for creating the alarms for alert the billing of
the cloud resource usage.
Step-(7): In the cloud watch click on the billing alarm and then click on the create new alarm.
27
Step-(8): Then select the metric for the billing alarm as shown below.
Step-(9): Set USD as 10 dollars and specify the greater than or equal option.
28
Step-(10): Describe the name of the alarm and then click on next.
Click on next.
29
RESULT
Thus the billing alert is created for the cloud organization susccessfully.
30
COMPARE CLOUD COST FOR A SIMPLE
EXP NO:5 WEB APPLICATION ACROSS AWS,
DATE: AZURE AND GCP AND SUGGEST THE
BEST ONE.
AIM:
To compare Cloud cost for a simple web application across AWS, Azure
and GCP and suggest the best one.
OBSERVATION:
1. AWS: AWS others a rich array of tools, including databases,
analytics, management, IoT, security, and enterprise applications.
AWS introduced per-second billing in 2017 for EC2 Linux-based
instances and EBS volumes.
3. Google Cloud Platform (GCP): GCP stands out thanks to its almost
limitless internal research and exporse. GCP is different due to its
role in developing various open-source technologies. Google Cloud is
much cheaper than AWS and Azure for computing optimized cloud-
based instances.
The best platform depends on your specific needs and requirements. If you need a
wide array of tools and services, AWS might be the best choice. If you’re looking
for enterprise services and have a longstanding relationship with Microsoft,
Azure could be your best bet.
31
CONCLUSION:
If you priorize innovacation and open-source technologies, GCP could
be the right choice. For compute optimized instances, GCP seems to be the
most cost-effective. However, it’s essential to understand your requirements
fully before making a decision
RESULT:
Thus, the comparison for Cloud cost for a simple web application across
AWS, Azure and GCP were implemented successfully.
32
VIVA QUESTIONS:
General Cloud Organization Setup
1. What are the key components required to set up a cloud organization in AWS or Google Cloud?
2. How do you differentiate between an organization and a project in Google Cloud?
3. Explain the steps involved in creating an organization in OpenStack or OpenNebula.
4. What is the significance of an organization unit in cloud platforms?
5. How do you manage multiple accounts under a single organization in AWS?
1. What are the typical cloud services involved in hosting a web application?
2. How would you estimate the cost of compute resources, such as virtual machines or containers?
3. How do storage costs vary based on different storage services (e.g., object storage vs. block storage)?
4. How does the choice between a relational and a NoSQL database impact cost?
5. How would you estimate costs for data transfer and bandwidth usage?
Cost-Benefit Analysis
1. How can I create an alert for high CPU usage in a cloud environment?
2. What is the best way to monitor memory consumption and set alerts in a cloud platform?
3. How do I set up alerts for sudden increases in network traffic on a cloud VM?
4. What tools can be used to create billing alerts for cloud resource usage?
5. How do I configure disk space usage alerts for cloud-based storage systems?
1. What steps are required to set up a billing alert for your cloud organization?
2. How can you define custom thresholds for billing alerts in a multi-project environment?
3. What types of metrics can trigger billing alerts in a cloud billing system?
4. How do billing alerts help in cost management and optimization?
5. Can billing alerts be integrated with external notification systems like email or Slack? If so, how?
33
Comparing cloud costs for a simple web application across AWS, Azure, and GCP:
Viva Questions:
2. Pricing Models
o How do the pricing models of AWS, Azure, and GCP differ for basic compute and storage
services?
3. Free Tiers
o What free-tier services are provided by AWS, Azure, and GCP for hosting a simple web
application?
5. Serverless Options
o What are the serverless options provided by AWS, Azure, and GCP, and how do their pricing
structures compare?
6. Network Costs
o How do outbound data transfer costs vary across AWS, Azure, and GCP for a simple web
application?
7. Storage Pricing
o How do storage costs compare across AWS (S3), Azure (Blob Storage), and GCP (Cloud
Storage)?
9. Billing Models
o What are the differences in billing granularity (per-second, per-minute) for compute resources
35