If you are not already reading YARD generated documentation, you can read the
full documentation by first generating it by running bundle exec rake yard
and
then opening the generated doc/index.html
document in your favorite browser.
Halloumi project for RUPSHalloumi.
Install dependencies
bundle config build.rugged --use-system-libraries
bundle config build.nokogiri --use-system-libraries
bundle install
Add the following environment variables
LS_AWS_ACCESS_KEY_ID=AKIAXXXXXXXXXXXXXXXXXX
LS_AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXX
LS_AWS_MFA_SERIAL=arn:aws:iam::############:mfa/XXXXXX
AWS_ROLE=XXXXXXX
-
Update the
.env.test
file.AWS_ACCOUNT = ############ AWS_REGION = XXXXXXXX STACK_NAME = XXXXXXXXXXXXX CLOUDFORMATION_BUCKET = XXXXXXXXXXXXXXXXXXXXXXXX
-
Adapt the
.env
file for the deployment.ENVIRONMENT = test
bundle exec rake && bundle exec rake apply
bundle exec rake
bundle exec rake diff
bundle exec rake apply
bundle exec rake delete
Environment variables are loaded in the following order, once a variable has been set it will not be overwritten:
- Variables you pass when calling
rake
- Variables defined in your current shell environment
- Variables defined in
~/.env.private
- Variables defined in
.env.private
- Variables defined in
.env.*.ami
- Variables defined in
.env
- Variables defined in
.env.$ENVIRONMENT
Please define deployment specific variables in .env.xxxx
files.
You MUST keep secrets outside versionning, for that, use a .env.private
file,
and store a safe copy of this file in a password manager like 1Password or
LastPass.
The Amazon Web Services account ID, a 12 digit long number, please remove the dashes.
The Amazon Web Services region to deploy the stack.
The Amazon Web Services account ids that should have access to build ami"s.
A whitespace and/or comma separated list of IPv4 IPs or CIDRs, for example
37.17.210.74, 1.2.3.4 5.6.7.8/28
. Only enable this when needed!
Used by Packer to determine which script from packer/src
to use in order to
build the AMI.
The ID of the AMI to use as base image for Packer.
The name of the stack. Used when applying/deleting the stack.
The GIT commit ID of the current HEAD of the deployment project, a.k.a. the super-project.
The GIT commit ID of the current HEAD of a packer project.