AWS Cloud

AWS CLI

  • aws ec2 describe-instances --profile user --> usage of profile from aws credentials on local machine

  • aws ec2 describe-images --owners amazon --filters "Name=name,Values=amzn2-ami-hvm-*-x86_64-gp2" --query 'reverse(sort_by(Images, &CreationDate))[].Name' --> searches amazon linux 2 AMI name according to name pattern. Then it sorts with Name, Creation date descending.

  • aws s3 ls s3://bucket-name --recursive --human-readable --summarize --> list content of the bucket-name

S3 CLI

  • aws s3 sync s3://acc_one_s3_bucket s3://acc_two_s3_bucket/acc_two_folder --profile aws-profile --> allows to copy content of acc_one_s3_bucket S3 bucket from one AWS account to folder in S3 bucket acc_two_s3_bucket/acc_two_folder on another AWS account. Permissions on the SOURCE bucket must be granted by using Canonical ID to list objects and read them.

AWS basic components

###VPC

Blogs / Online Articles

AWS Services

IAM

Lambda

ECS

Blogs / Online Articles

ECR

DynamoDB

Last updated

Was this helpful?