forked from hashicorp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dlm: Add support for target_region parameter in cross_region_co…
…py_rule `target_region` should only be used for dlm policies of `policy_type=IMAGE_MANAGEMENT`. Creating `IMAGE_MANAGEMENT` policies using `target` raises a validation error from the AWS API. Previously the argument was marked as deprecated from the AWS docs, but after contacting the AWS support, the documentation was updated to specify that `TargetRegion` should be used only for `IMAGE_MANAGEMENT` policies, while `Target` only for `EBS_SNAPSHOT_MANAGEMENT` policies. See the relevant docs: https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html Relevant issues: - https://discuss.hashicorp.com/t/fail-to-create-a-cross-region-copy-rule-for-dlp/46076 - hashicorp#24226 This fixes hashicorp#24226
- Loading branch information
Showing
4 changed files
with
92 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
resource/aws_dlm_lifecycle_policy: Add `target_region` argument in `cross_region_copy_rule`, to be used for `IMAGE_MANAGEMENT` policies. | ||
``` |
This file contains 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
This file contains 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
This file contains 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