Allow creating resources for multiple environments in the same account.#119
Closed
Allow creating resources for multiple environments in the same account.#119
Conversation
If we're going to be able to have all resources for multiple environments in one account (PR pending), we must make sure that all resources have the environment name in them, so they can be separated.
If there's multiple environment builds in the same account (such as `dev`, `test`, `non-prod` etc), we can't create ALL resources in that account. Plans and frameworks are _account_ specific, not _environment_ specific. As in, a plan will have a selection (such as "backup everything with the tag `xyz` set to `abc`"). So having separate plans for each env doesn make any sense, they will be identical and backup the same resources. So introduce a new variable `resources_in_same_account` which should be set to the account where *everything* (the "account specific" resources) are created. Depends on: `include_environment_in_resource_names = true`. Depends on: #118
Since the plan will do backups of ALL resources (from the selection)
in the account, and then put them in a vault, we won't need vaults for
additional environments in the account.
Only for the first ("base") environment.
Author
|
Superseeded by #120. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
If there's multiple environment builds in the same account (such as
dev,test,non-prodetc), we can't create ALL resources in that account.Plans and frameworks are account specific, not environment specific.
As in, a plan will have a selection (such as "backup everything with the tag
xyzset toabc"). So having separate plans for each env doesn make any sense, they will be identical and backup the same resources.So introduce a new variable
resources_in_same_accountwhich should be set to the account where everything (the "account specific" resources) are created.Depends on:
include_environment_in_resource_names = true.Depends on: #118
NOTE: In this PR, the #118 PR is included, because it builds on that! That PR needs to be merged before this, which should then be rebased to remove that first commit, before this PR can be merged.
Description
Context
Type of changes
Checklist
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.