Skip to content

Releases: be-bold/terraform-aws-account-lookup

3.0.0

10 Jan 13:28
8537cf5
Compare
Choose a tag to compare

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

2.1.0

12 Apr 08:46
d42a7b8
Compare
Choose a tag to compare
  • Added organization id to the outputs

2.0.0

05 Apr 09:45
7abd40c
Compare
Choose a tag to compare

Breaking changes

  • The output format of output.search_result has been changed to:
map(list(object({
  arn = string
  email  = string
  id = string  
  name = string
  status = string
  tags = map(string)
})))
  • Input parameter include and exclude both await an object now instead of a map.
  • Input parameter group_by has been renamed to group_by_tag.

1.0.0

22 Mar 14:18
325f213
Compare
Choose a tag to compare
Changed wording in README.md to be consistent