Recover the Cloud Ring
4.1 AWS CLI Intro
Try out some basic AWS command line skills in this terminal. Talk to Jill Underpole in the Cloud Ring for hints.
Hint(s)
Solve
$ aws sts get-caller-identity
Terminal answers
$ aws help
reat! When you're done, you can quit with q.
Next, please configure the default aws cli credentials with the access key AKQAAYRKO7A5Q5XUY2IY, the secret key qzTscgNdcdwIo/soPKPoJn9sBrl5eMQQL19iO5uf and the region us-east-1 .
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config
access key AKQAAYRKO7A5Q5XUY2IY,
secret key qzTscgNdcdwIo/soPKPoJn9sBrl5eMQQL19iO5uf
Region us-east-1
Format: json
elf@3298c5df39c5:~$ aws sts get-caller-identity
An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.
elf@3298c5df39c5:~$ vim .aws/config
elf@3298c5df39c5:~$ vim .aws/credentials
elf@3298c5df39c5:~$ aws sts get-caller-identity
{
"UserId": "AKQAAYRKO7A5Q5XUY2IY",
"Account": "602143214321",
"Arn": "arn:aws:iam::602143214321:user/elf_helpdesk"
}
elf@3298c5df39c5:~$