AWS

AWS #

AWS profiles #

Command
aws configure list-profilesList the local configured aws cli profiles.
aws sso login --profile my-profileTo login in using a profile and the SSO (with IAM Identity Center credentials)
aws sso logoutTo logout.
aws s3 ls --profile=myProfileList buckets using a profile
export AWS_DEFAULT_PROFILE=myProfileTo set up the default aws profile.

AWS IAM #

Command
aws iam list-rolesList all roles in the account.
aws iam get-role --role-name my-roleGet the details of a role.
aws iam list-attached-role-policies --role-name my-roleList all policies attached to a role.

AMS EKS #

Command
aws eks list-clustersList all EKS clusters.
aws eks describe-cluster --name my-clusterGet the details of a cluster.
aws eks update-kubeconfig --name my-clusterUpdate the kubeconfig file to access the cluster. Do kubectl get svc to test your configuration

AWS Policies #

Command
aws iam list-policiesList all policies in the account.
aws iam get-policy --policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicyGet the details of a policy.