mirror of https://github.com/status-im/consul.git
5da640b287 | ||
---|---|---|
.. | ||
scripts | ||
README.md | ||
consul.json |
README.md
Consul AMI
Quick start
To build the Consul AMI:
git clone
this repo to your computer.- Install Packer.
- Configure your AWS credentials using one of the options supported by the AWS
SDK. Usually, the easiest option is to
set the
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
, andAWS_DEFAULT_REGION
environment variables. - Update the
variables
section of theconsul.json
Packer template to configure the AWS region, Consul version, and datadog api key you would like to use. Feel free to reference this article to find your datadog API key. - For additional customization you can add tags within the
scripts/datadog.yaml
file. One example of a tag could be"consul_version" : "consulent_175"
. These tags are searchable through the datadog dashboard. Another form of customization is changing the datacenter tag withinscripts/telemetry.json
, however it is defaulted tous-east-1
. - Run
packer build consul.json
.
When the build finishes, it will output the IDs of the new AMI. Add this AMI ID in the consul_ami_id
variable in the vars.tfvars
file.