For initial access to AWS you should find access keys and tokens of an account. That can be done with some different ways phishing, vulnerable an application, leaked tokens/credentials etc.
There are some steps can be done during that phase.
Console sign in URL for root User :
https://signin.aws.amazon.com/console
Console sign in URL for IAM User :
https://account-ID-or-alias.signin.aws.amazon.com/console
Configure AWS CLI :
aws configure --profile profile-name
Get Information about user identity / role identity :
aws sts get-caller-identity
Lists all managed policies that are attached to the specified IAM user:
aws iam list-attached-user-policies --user-name user-name
Retrieves information about the specified version of the specified managed policy :
Get-Information about instance id :
Lists the instance profiles :
Attach an instance profile with a role to a EC2 instance: :
Last updated 3 years ago
aws iam get-policy-version --policy-arnpolicy-arn--version-id version-id
curl http://169.254.169.254/latest/meta-data/instance-id
aws iam list-instance-profiles
aws ec2 associate-iam-instance-profile --instance-id InstanceID --iam-instance-profile Name=ProfileName