<commit_before>## 0.12.7 (Unreleased)

NEW FEATURES:
* New functions `regex` and `regexall` allow applying a regular expression pattern to a string and retrieving any matching substring(s) [GH-22353]

ENHANCEMENTS:
* lang/funcs: `lookup()` can work with maps of lists, maps and objects [GH-22269]
* SDK: helper/acctest: Add function to return random IP address [GH-22312]
* SDK: httpclient: Introduce composable `UserAgent(version)` [GH-22272]
* connection/ssh: Support certificate authentication [GH-22156]

BUG FIXES:
* command/0.12upgrade: use user-supplied plugin-dir [GH-22306]
* config: fix panic on tuples with `for_each` [GH-22279]
* config: fix references to `each` of `for_each` in provisioners [GH-22289]
* command/hook_ui: Truncate the ID considering multibyte characters [GH-18823]
* command/fmt: Terraform fmt no longer inserts spaces after % [GH-22356]
* config: ensure consistent evaluation when moving between single resources and `for_each` in addressing [GH-22454]
* backend/google: Now using the OAuth2 token endpoint on `googleapis.com` instead of `google.com`. These endpoints are equivalent in functionality but `googleapis.com` hosts are resolvable from private Google Cloud Platform VPCs where other connectivity is restricted. [GH-22451]
* command: fix issue where commands occasionally exited before the error message printed [GH-22373]
* config: fix panic when using nested dynamic blocks [GH-22314]

## 0.12.6 (July 31, 2019)

NOTES:

* backend/s3: After this update, the AWS Go SDK will prefer credentials found via the `AWS_PROFILE` environment variable when both the `AWS_PROFILE` environment variable and the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables are statically defined. Previously the SDK would ignore the `AWS_PROFILE` environment variable, if static environment credentials were also specified. This is listed as a bug fix in the AWS Go SDK release notes. ([#22253](https://github.com/hashicorp/terraform/issues/22253))

NEW FEATURES:
* backend/oss: added support for assume role config ([#22186](https://github.com/hashicorp/terraform/issues/22186))
* config: Resources can now use a for_each meta-argument ([#17179](https://github.com/hashicorp/terraform/issues/17179))

ENHANCEMENTS:
* backend/s3: Add support for assuming role via web identity token via the `AWS_WEB_IDENTITY_TOKEN_FILE` and `AWS_ROLE_ARN` environment variables ([#22253](https://github.com/hashicorp/terraform/issues/22253))
* backend/s3: Support automatic region validation for `me-south-1`. For AWS operations to work in the new region, the region must be explicitly enabled as outlined in the [AWS Documentation](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable) ([#22253](https://github.com/hashicorp/terraform/issues/22253))
* connection/ssh: Improve connection debug messages ([#22097](https://github.com/hashicorp/terraform/issues/22097))
<commit_msg>update CHANGELOG.md<commit_after>## 0.12.7 (Unreleased)

NEW FEATURES:
* New functions `regex` and `regexall` allow applying a regular expression pattern to a string and retrieving any matching substring(s) [GH-22353]

ENHANCEMENTS:
* lang/funcs: `lookup()` can work with maps of lists, maps and objects [GH-22269]
* SDK: helper/acctest: Add function to return random IP address [GH-22312]
* SDK: httpclient: Introduce composable `UserAgent(version)` [GH-22272]
* connection/ssh: Support certificate authentication [GH-22156]

BUG FIXES:
* config: reduce MinIems and MaxItems  validation during decoding, to allow for use of dynamic blocks [GH-22530]
* config: don't validate MinItems and MaxItems in CoerceValue, allowing providers to set incomplete values [GH-22478]
* config: fix panic on tuples with `for_each` [GH-22279]
* config: fix references to `each` of `for_each` in provisioners [GH-22289]
* config: fix panic when using nested dynamic blocks [GH-22314]
* config: ensure consistent evaluation when moving between single resources and `for_each` in addressing [GH-22454]
* command: fix issue where commands occasionally exited before the error message printed [GH-22373]
* command/0.12upgrade: use user-supplied plugin-dir [GH-22306]
* command/hook_ui: Truncate the ID considering multibyte characters [GH-18823]
* command/fmt: Terraform fmt no longer inserts spaces after % [GH-22356]
* command/state: Allow moving resources to modules not yet in state [GH-22299]
* backend/google: Now using the OAuth2 token endpoint on `googleapis.com` instead of `google.com`. These endpoints are equivalent in functionality but `googleapis.com` hosts are resolvable from private Google Cloud Platform VPCs where other connectivity is restricted. [GH-22451]

## 0.12.6 (July 31, 2019)

NOTES:

* backend/s3: After this update, the AWS Go SDK will prefer credentials found via the `AWS_PROFILE` environment variable when both the `AWS_PROFILE` environment variable and the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables are statically defined. Previously the SDK would ignore the `AWS_PROFILE` environment variable, if static environment credentials were also specified. This is listed as a bug fix in the AWS Go SDK release notes. ([#22253](https://github.com/hashicorp/terraform/issues/22253))

NEW FEATURES:
* backend/oss: added support for assume role config ([#22186](https://github.com/hashicorp/terraform/issues/22186))
* config: Resources can now use a for_each meta-argument ([#17179](https://github.com/hashicorp/terraform/issues/17179))

ENHANCEMENTS:
* backend/s3: Add support for assuming role via web identity token via the `AWS_WEB_IDENTITY_TOKEN_FILE` and `AWS_ROLE_ARN` environment variables ([#22253](https://github.com/hashicorp/terraform/issues/22253))
* backend/s3: Support automatic region validation for `me-south-1`. For AWS operations to work in the new region, the region must be explicitly enabled as outlined in the [AWS Documentation](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable) ([#22253](https://github.com/hashicorp/terraform/issues/22253))
* connection/ssh: Improve connection debug messages ([#22097](https://github.com/hashicorp/terraform/issues/22097))

{'fraction_non_alphanumeric': 0.09705596894208994, 'fraction_numerical': 0.051601423487544484, 'mean_word_length': 5.570669500531349, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3160214', 'n_tokens_mistral': 2070, 'n_tokens_neox': 1793, 'n_words': 671}