Skip to content

hauslo/infra-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

infra-website

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.

Test

Auto

Start and wait for localstack, init terraform, run the test suite and stop localstack

make auto-test

Manual

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 return 200

Stop localstack

make stop

See the Makefile for more details.

About

Deploys a `public/` directory to AWS S3 Website with terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published