This repository was archived by the owner on Jun 28, 2019. It is now read-only.
Allow specifying a separate application name so that sub applications…#55
Open
eyespies wants to merge 4 commits intoforward3d:masterfrom
Open
Allow specifying a separate application name so that sub applications…#55eyespies wants to merge 4 commits intoforward3d:masterfrom
eyespies wants to merge 4 commits intoforward3d:masterfrom
Conversation
… can be deployed without having to change server tags
Adding aws-sdk-v1 to gemfile
Add aws-sdk-v1 gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… can be deployed without having to change server tags. We have a use case where we build and deploy multiple, separate, applications as different directories within a single virtual host where we also have multiple hosts, e.g. the Widget application is deployed to the Factory host as http://www.factory.com/widget/ and the Water and Fish applications are deployed to the Ocean host as http://www.ocean.com/water/ and http://www.ocean.com/fish/.
In order to prevent the need for us to create a very long tag value (Tag Name=Projects, Tag Value=widget1,widget2,widget3,widget4, etc) we want to group the applications based on the host/domain name and not the application name. To accomplish this, we have created an override value called ec2_application which supersedes the application setting but only if it is set.
This does not affect existing behavior because it defaults to using the normal :application setting if the :ec2_application value is not set. My Ruby skills are only moderate, so please double check the if ... statement I wrote.
I tested this by doing the following: