Deploys a public/
directory to AWS S3 Website with terraform.
See test/main.tf
This modules expects aws secrets to be present in the environment (AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables with valid credentials) although they are not required to test the module locally.
Start and wait for localstack, init terraform, run the test suite and stop localstack
make auto-test
Start localstack and init terraform
make start
Run the test suite
make apply
- validates terraform (
validate
) ; - applies terraform (
apply
) ; - ensures that
curl localhost:4572/test/index.html
return200
Stop localstack
make stop
See the Makefile for more details.