AWS
00. Basic
## ------------------| Configure
aws configure
# AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
# AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
# Default region name [None]: us-west-2
# Default output format [None]:
## ------------------| Export as env
export AWS_PROFILE=ProfileName
export AWS_REGION=<AWS_REGION>
export AWS_ACCESS_KEY_ID=<ACCESS_KEY>
export AWS_SECRET_ACCESS_KEY=<SECRET_KEY>
export AWS_SESSION_TOKEN=<SESSION_TOKEN>
## ------------------| Use as file
aws configure import --csv file://credentials.csv
## ------------------| Set as .aws
### ~/.aws/credentials
[<ProfileName>]
aws_access_key_id = <ACCESS_KEY>
aws_secret_access_key = <SECRET_KEY>
aws_session_token = <SESSION_TOKEN>
### ~/.aws/config
[profile <ProfileName>]
region = <AWS_REGION>
## ------------------| List details
aws sts get-caller-identity01. IAM (Identity and Access Management)
01.0 Users
01.2 Groups
01.3 Roles
01.4 Policies
01.5 Privilege Escalation
Required Permission
PrivilageEsc Methods
01.5.1 Overly Permissive Permission
01.5.2 Dangerous policy combinations
02. S3 (Simple Storage Service)
03. VPC (Virtual Private Cloud)
04. EC2 (Elastic Compute Cloud)
05. EBS (Elastic Block Store)
06. EKS (Elastic Kubernetes Service)
07. RDS (Relational Database Service)
08. KMS (Key Management Server)
09. Lambda
10. DynamoDB
11. Secret Manager
12. pacu
13. ScoutSuite
14. PMapper
Last updated