This PR adds a localstack S3 bucket which will be written to and read from when running checker or rule manager locally (rather than writing to the CODE S3 bucket).
The localstack/init-aws.sh script is copied to the Docker localstack instance due to the following rules in docker-compose.yml:
- "./localstack/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh"
Docker will run the script on initialisation and create the local bucket.
pan-domain-authentication requires its own s3 client because we don't run it locally.
How to test
Run the app locally - ./script/start. Ensure docker is running.
Co-authored with @aracho1
What does this change?
This PR adds a localstack S3 bucket which will be written to and read from when running checker or rule manager locally (rather than writing to the CODE S3 bucket).
The
localstack/init-aws.sh
script is copied to the Docker localstack instance due to the following rules indocker-compose.yml
:- "./localstack/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh"
Docker will run the script on initialisation and create the local bucket.
pan-domain-authentication
requires its own s3 client because we don't run it locally.How to test
./script/start
. Ensure docker is running.