-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLM policy with cross_region_copy_rule can't be created #24226
Comments
Hello I am getting exactly same issue. Please suggest something on this. |
It's been more than a year and nobody gives rats about it? |
It doesn't work when 'resource_types = ["INSTANCE"]', with resource_types = ["VOLUME"] it works |
Okay thanks for the update.
…On Mon, 4 Sept, 2023, 9:32 pm Yauheni, ***@***.***> wrote:
It doesn't work when 'resource_types = ["INSTANCE"]', with resource_types
= ["VOLUME"] it works
—
Reply to this email directly, view it on GitHub
<#24226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ6Q4UBAJOU4XJPMTBBQSSLXYX3SRANCNFSM5TLVSSIA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
After some time I got back on this issue.
It worked and created DLM policy. So it IS an issue of Terraform giving us no option to choose b/w these parameters. |
I have talked with AWS support about this. Unfortunately at the moment, they told me it is expected that https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html This means that the AWS provider will need to be updated to support I will see if I can patch this myself, otherwise I might need to create another ticket clarifying this. |
…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
#33796 Here it is, feel free to 👍 it so it gets seen easier. |
Community Note
Description
Trying to use DLM cross region copy feature released in #12868 . Getting error message that Target parameter is invalid.
It is possible that issue is related to the AWS DLM API transition from TargetRegion parameter to Target. More details [here] (https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html#dlm-Type-CrossRegionCopyRule-Target)
Was able to reproduce similar behavior using old awscli tool
So, the root of the issue can be in https://github.com/aws/aws-sdk-go/blob/main/service/dlm/api.go , but after brief view didn't find anything that can help.
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Expected Behavior
DLM policy should be created with cross copy feature
Actual Behavior
Error message
Steps to Reproduce
Apply provided terraform
Important Factoids
References
AWS DLM API transition from TargetRegion to Target
The text was updated successfully, but these errors were encountered: