English | 中文
This is the scenario in which the AWS S3 bucket allow http access.
Execute the following command in the container
cd /TerraformGoat/aws/s3/bucket_allow_http_accessConfigure AWS Access Credentials
aws configureYou can see the access key in the AWS [Console --> Security Credentials]
Deploy Vulnerable Environment
terraform init
terraform applyWhen the terminal prompts
Enter a value:, enteryes
After the environment is set up, you can see the created Bucket at Outputs.
Access using http
> curl http://houxian-xxx.s3.us-east-1.amazonaws.com
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>6BQ1R1KVQV1WZF7E</RequestId><HostId>u2kl/7upzksDaABZSUSqkE1XDyElBfpcjzC6sL0ML0sZZGABdjvwt+woUlBw4wRXt8pcDa+pBVU=</HostId></Error>terraform destroy