-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: Add "num_suffix_format" variable for instance naming #147
Conversation
hi @ryancraig - thanks for the PR. could you elaborate on what you are trying to solve with this change; what is the use case? |
@bryantbiggs Some enterprises still maintain policies and naming conventions for resources; they wish to treat resources like pets. For example, I need to adhere to the example naming convention "MyPetEC2Instance01" through "MyPetEC2Instance10" for 10 specified EC2 instances. This change allows such policies to be satisfied if required. This is an optional configuration. example use
|
ah ok, yes I have seen this too @ryancraig (unfortunately!). in that case would you mind rebasing/merging master to update your branch and then change the title of your PR to something like |
@bryantbiggs Yes, I will get these changes made. Thank you! |
…ogic in main.tf, and update Inputs section in README
@bryantbiggs I rebased and pushed. Should be good to go. Thanks again! |
thanks @ryancraig - I agree; this is the better approach so thank you. @antonbabenko what are your thoughts? |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
num_suffix_format
variable. The default value is-%d
so use is optional. If the default value is not overridden the module behaves as it did before I made this change.tags
andvolume_tags
inmain.tf
.Inputs
section of the README.Motivation and Context
Some enterprises still maintain policies and naming conventions for resources; they wish to treat resources like pets. For example, I need to adhere to the example naming convention "MyPetEC2Instance01" through "MyPetEC2Instance10" for 10 specified EC2 instances. This change allows such policies to be satisfied if required. This is an optional configuration.
Breaking Changes
No breaking changes. Explicit defaults ensure existing behavior and allow optional use.
How Has This Been Tested?
Manually tested.
example use