Skip to content

Allow creating resources for multiple environments in the same account.#119

Closed
TurboNHS wants to merge 4 commits intomainfrom
turbo-resources-in-same-account
Closed

Allow creating resources for multiple environments in the same account.#119
TurboNHS wants to merge 4 commits intomainfrom
turbo-resources-in-same-account

Conversation

@TurboNHS
Copy link
Copy Markdown

@TurboNHS TurboNHS commented Apr 23, 2026

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

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

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

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.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

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.
@TurboNHS TurboNHS marked this pull request as draft April 23, 2026 10:29
@TurboNHS
Copy link
Copy Markdown
Author

Superseeded by #120.

@TurboNHS TurboNHS closed this Apr 23, 2026
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.

1 participant