Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag for stack name template #1094

Merged
merged 2 commits into from
Jul 29, 2017
Merged

Add flag for stack name template #1094

merged 2 commits into from
Jul 29, 2017

Conversation

ejholmes
Copy link
Contributor

Previously, the --environment flag was used to generate a template for determining the CloudFormation stack name for an application. This can be a little constraining and overloaded the responsibilities of --environment.

With this change, you can now directly specify a stack name template like this:

EMPIRE_CLOUDFORMATION_STACK_NAME_TEMPLATE="my-custom-prefix-{{.Name}}"

Empire will still fallback to including --environment in the prefix if --cloudformation.stack-name-template isn't provided.

@ejholmes ejholmes requested a review from phobologic July 28, 2017 06:28
@@ -376,6 +378,12 @@ var EmpireFlags = []cli.Flag{
EnvVar: "EMPIRE_ROUTE53_INTERNAL_ZONE_ID",
},
cli.StringFlag{
Name: FlagCloudFormationStackNameTemplate,
Value: "",
Usage: "If provided, this should be a Go text/template that will be used to generate a CloudFormation stack name for an application.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a comment about what happens if not specified in the usage?

@ejholmes ejholmes force-pushed the stack-name-template branch 2 times, most recently from 0c63b08 to cc604c3 Compare July 29, 2017 00:59
@ejholmes ejholmes merged commit 01632df into master Jul 29, 2017
@ejholmes ejholmes deleted the stack-name-template branch July 29, 2017 02:40
@ejholmes ejholmes mentioned this pull request Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants