Listen to this Post
Finally, I’m an AWS Community Builder! This means more opportunities to share AWS knowledge, especially in the data area. It’s only once a year to apply, and I did it! I will make use of this amazing opportunity to learn more and share more. I will show up more at AWS events in Thailand if I get the chance, but blogs and videos are coming soon! #AWScommunitybuilder #Clouddatalabor #LearnandShare #AWS
You Should Know:
1. AWS CLI Command to List S3 Buckets:
aws s3 ls
This command lists all the S3 buckets in your AWS account.
2. Create an S3 Bucket:
aws s3 mb s3://your-bucket-name
Use this command to create a new S3 bucket.
3. Upload a File to S3:
aws s3 cp your-file.txt s3://your-bucket-name/
This command uploads a file to your S3 bucket.
4. Launch an EC2 Instance:
aws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type t2.micro --key-name MyKeyPair
This command launches an EC2 instance using a specific AMI and instance type.
5. List Running EC2 Instances:
aws ec2 describe-instances --filters "Name=instance-state-name,Values=running"
This command lists all running EC2 instances.
6. Create an IAM User:
aws iam create-user --user-name NewUser
This command creates a new IAM user.
7. Attach a Policy to an IAM User:
aws iam attach-user-policy --user-name NewUser --policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess
This command attaches an S3 full access policy to the IAM user.
8. Create a CloudWatch Alarm:
aws cloudwatch put-metric-alarm --alarm-name CPUAlarm --metric-name CPUUtilization --namespace AWS/EC2 --statistic Average --period 300 --threshold 80 --comparison-operator GreaterThanOrEqualToThreshold --dimensions Name=InstanceId,Value=i-1234567890abcdef0 --evaluation-periods 2 --alarm-actions arn:aws:sns:us-east-1:123456789012:MyTopic --unit Percent
This command creates a CloudWatch alarm for CPU utilization.
9. Deploy a Lambda Function:
aws lambda create-function --function-name MyFunction --runtime python3.8 --role arn:aws:iam::123456789012:role/lambda-execution-role --handler lambda_function.lambda_handler --zip-file fileb://function.zip
This command deploys a Lambda function.
10. List Lambda Functions:
aws lambda list-functions
This command lists all Lambda functions in your account.
What Undercode Say:
Becoming an AWS Community Builder is a significant achievement, especially in the cloud data engineering space. AWS offers a vast array of services, and mastering them can open doors to numerous opportunities. The commands provided above are essential for anyone looking to manage AWS resources efficiently. Whether you’re working with S3, EC2, IAM, or Lambda, these commands will help you streamline your workflows and automate tasks. Keep learning, keep sharing, and make the most of your AWS journey!
For more detailed guides and tutorials, you can visit the official AWS documentation: AWS Documentation.
References:
Reported By: Kriangsak Sumthong – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅



