Skip to content

Configuration for generating an AMI running Hashicorp's Consul.

License

Notifications You must be signed in to change notification settings

UltiManager/consul-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul Image

Packer template for generating an AMI running Hashicorp's Consul.

Specifically, the template builds an AMI based on the Ubuntu 16.04 base image that runs a Consul server instance.

Using the Image

Requirements

The created image requires additional configuration in order to run. Notably:

To accomplish this, create a file in the /opt/consul/config directory with the desired options. One solution for this is to use the user data parameters available when launching an EC2 instance.

Usage with Terraform

This repository is configured to create an image named consul-server-<consul version>-<timestamp>. This can be used in Terraform through the following:

data "aws_ami" "consul-server" {
    most_recent = true
    owner       = ["self"]

    filter {
        name   = "name"
        values = ["consul-server-*"]
    }
}

License

This project is licensed under the MIT License. More information can be found in the LICENSE file.

About

Configuration for generating an AMI running Hashicorp's Consul.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages