Hands-On AWS Cloud Learning: Bridging the Gap Between Theory and Practice

Listen to this Post

URL:

Practical AWS Commands and Codes:

1. Launching an EC2 Instance:

aws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type t2.micro --key-name MyKeyPair --security-group-ids sg-903004f8 --subnet-id subnet-6e7f829e

2. Creating an S3 Bucket:

aws s3 mb s3://my-unique-bucket-name

3. Uploading a File to S3:

aws s3 cp myfile.txt s3://my-unique-bucket-name/

4. Setting Up a CloudWatch Alarm:

aws cloudwatch put-metric-alarm --alarm-name CPUAlarm --metric-name CPUUtilization --namespace AWS/EC2 --statistic Average --period 300 --threshold 70 --comparison-operator GreaterThanOrEqualToThreshold --dimensions Name=InstanceId,Value=i-0abcdef1234567890 --evaluation-periods 2 --alarm-actions arn:aws:sns:us-east-1:123456789012:MyTopic --unit Percent

5. Creating a DynamoDB Table:

aws dynamodb create-table --table-name MyTable --attribute-definitions AttributeName=ID,AttributeType=N --key-schema AttributeName=ID,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5

6. Deploying a Lambda Function

References:

initially reported by: https://www.linkedin.com/posts/riyazsayyad_many-it-professionals-new-to-cloud-spend-activity-7302291316997074944-pnhM – Hackers Feeds
Extra Hub:
Undercode AIFeatured Image