EC2

Instance Metadata

Get credentials of instance profile IAM role

curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${role-name}

Get region

curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.region'

Get user data

INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
sudo cat /var/lib/cloud/instances/$INSTANCE_ID/user-data.txt

or

curl http://169.254.169.254/2021-03-23/user-data

Data transfer bandwidth between S3

Traffic between Amazon EC2 and Amazon S3 can leverage up to 100 Gbps of bandwidth to VPC endpoints and public IPs in the same Region.

From What’s the maximum transfer speed between Amazon EC2 and Amazon S3?

EBS

Provisioned IOPS SSD volumes

Provisioned IOPS is calculated with IO size = 16KiB (reference).

S3

Range get

Using the Range HTTP header in a GET Object request, you can fetch a byte-range from an object, transferring only the specified portion

From Use Byte-Range Fetches

Concurrency on CLI

Change max_concurrent_requests.

aws configure set default.s3.max_concurrent_requests 20

Mounting S3 bucket as a local file system

RDS

Aurora

DB cluster parameter group vs DB parameter group

The values in the DB parameter group can override default values from the cluster parameter group.

from: Amazon Aurora DB cluster and DB instance parameters

Enhanced monitoring

Performance insights

SDK

Retry behavior

Links