AWS is the leading cloud platform. Learn the fundamentals of cloud computing with AWS services.
EC2 - Virtual Servers
# Launch an EC2 instance
aws ec2 run-instances \
--image-id ami-abc12345 \
--instance-type t2.micro \
--key-name MyKeyPair
# List instances
aws ec2 describe-instances
S3 - Object Storage
import boto3
s3 = boto3.client('s3')
# Upload file
s3.upload_file('local.jpg', 'mybucket', 'remote.jpg')
# Download file
s3.download_file('mybucket', 'remote.jpg', 'local.jpg')
# List objects
response = s3.list_objects_v2(Bucket='mybucket')
Lambda - Serverless Functions
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': 'Hello from Lambda!'
}
Cloud computing scales with your needs and reduces infrastructure costs!