Then I would sugest you use Consul. Either you run one cluster per env or:

That your ami/image has a (cloud-)init script thats detects which
environment by inspecting the account/project/vpc/subnet to determine which
env the instance is launched in and makes that info available to all apps.
Which uses this to look up the right key.

The first is simpler in the apps but requires a CD pipeline for config.

On Oct 12, 2016 1:49 AM, "Sean Farrow" <sean.far...@tendosolutions.com>
wrote:

> Hi all,
>
>
>
> I’ve got my CI system producing machines(in various formats) when a build
> of my software is successful.
>
> This build goes through several environments (staging and production
> currently). What is the best way of changing configurations for things like
> database connection strings when it goes to the next environment?
>
> We are  using the full hashi stack, so the use of any other tools is OK.
> We are also using chef for configuration management.
>
>
>
> In terms of languages, it’s a mix of .net, Java and JavaScript/TypeScript.
>
> Any help appreciated.
>
> Kind regards
>
> Sean.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/VI1PR0201MB2013265D5360976FC17
> 3588483DA0%40VI1PR0201MB2013.eurprd02.prod.outlook.com
> <https://groups.google.com/d/msgid/packer-tool/VI1PR0201MB2013265D5360976FC173588483DA0%40VI1PR0201MB2013.eurprd02.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8cq8Ex1gG4OiD7hR%3DYGyTpMWczrs-fONNDSUz847q0jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to