Coding Challenge summarized requirements
- Write new file to S3 every 2 minutes.
- Logging to stderr
- 24hr life cycle on files, contain sensitive info, 100% availability
- MMDDYYYY-time-filename
- Docker within k8s, QA and Stage
replace "rcarson-inra-test" with something else. S3 buckets are unique globally across all accounts so names cannot be shared.
cd codeChallenge/infrastructure/qa
terraform init
terraform apply
cd codeChallenge/infrastructure/staging
terraform init
terraform apply
-> codeChallenge/app
docker build -f Dockerfile -t filemaker:latest .
docker run -p 5001:5000 --name="filemaker" -e ENVIRONMENT=staging -e BUCKET_NAME=YOUR_BUCKET_NAME -e ACCESS_KEY=REDACTED -e SECRET_ACCESS_KEY=REDACTED filemaker:latest
kubectl config use-context your-environment-stage
kubectl create secret generic codechallenge-secrets --from-literal=access_key=REDACTED --from-literal=secret_access_key=REDACTED
kubectl apply -f stage.yml