This guide is for developers of the OE Drupal Pattern.
We are following the 3 Musketeers pattern for project layout / setup.
AWS Vault is a handy tool we use for managing AWS credentials. The commands below assume AWS Vault is configured with credentials named 'oe-patterns-dev' or 'oe-patterns-prod'.
First, install Docker, Docker Compose, and Make.
Then:
$ make build
$ make synth
$ aws-vault exec oe-patterns-dev -- make deploy
- Create release branch with
git flow release start [version]
- Update CHANGELOG.md on release branch
- Build AMI in production account with
aws-vault exec oe-patterns-prod -- make TEMPLATE_VERSION=$TEMPLATE_VERSION ami-ec2-build
- Update
drupal_stack.py
with updated AMI ID as instructed - Synth the template with
make synth-to-file
and test in prod AWS Console - Repeat until test passes
- Generate PLF row using AMI ID and release version with
aws-vault exec oe-patterns-prod -- make AMI_ID=$AMI_ID TEMPLATE_VERSION=$TEMPLATE_VERSION gen-plf
- Publish CFN template to artifacts bucket using
aws-vault exec oe-patterns-dev -- make TEMPLATE_VERSION=$TEMPLATE_VERSION publish
- Commit changes to release branch
- Finish release branch with
git flow release finish [version]
- Teardown test stacks with
aws-vault-exec oe-patterns-prod -- make destroy
- Go to develop branch and rebuild ami in dev account, commit to results develop