Random Notes

Just little snippets of things which might be useful later, but are not really worthy of a blog post.


The urlprefix- in the tags for a service in Consul is a literal constant. e.g. urlprefix-/ -> matches everything


When you specify a Traefik constraint as --consulcatalog.constraints='tag==service', the tag it looks for in Consul is traefik.tags=service, NOT service.


EC2 (and GCP) instances run scripts on machine start, but Packer won’t wait for these to complete before running things, which can break apt. Add this as a provisioner to wait for AWS Cloud-Init to finish before your scripts which need apt:

    "only": [ "amazon-ebs" ],
    "inline": [ "/usr/bin/cloud-init status --wait" ]