Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@bebold-jhr bebold-jhr released this 10 Jan 13:28
· 2 commits to main since this release
8537cf5

3.0.0

⚠️ This is a major update. It contains breaking changes.

Motivation

Previously, if you wanted to use multiple different filters in your deployment, you had to create multiple instances of the terraform-aws-account-lookup module. Each instance would then create one AWS API call for the organization and one call for each account. This lead to a huge amount of API calls in organizations having a lot of accounts.
In order to boost performance and reduce the number of API calls this module has been split into:

  • the lookup module (root) which retrieves the organization and account data via API once
  • the filter submodule which can be used for multiple instances with different filters.

🚀 New features

  • Matcher type for account name now supports contains
  • Matcher type for account name now supports regex

💥 Breaking changes

  • Requires terraform 1.6.0 or later
  • Alias configuration for the AWS provider has been removed. You can either use your default provider or rename your provider call to aws = aws.your-role-name
  • Variables include, exclude and group_by_tag have been moved to the submodule filter
  • Outputs on the lookup module have been replaced with new outputs. Instead of one output containing the management account and a second which doesn't, there is only one output for each structure. The variable include_management_account affects the content of all outputs now.
  • search_result which is now located in the filter submodule has been renamed to result
  • search_result_group_id_missing_key which is now located in the filter submodule has been renamed to result_group_id_missing_key

ℹ️ Have a look at the README.md files and the examples before migrating and make sure that your plan doesn't contain any unexpected changes. Test the migration in a non-production environment.

Full Changelog: 2.1.0...3.0.0