terraform-provider-aws icon indicating copy to clipboard operation
terraform-provider-aws copied to clipboard

[Bug]:

Open nefnohack opened this issue 2 years ago • 2 comments

Terraform Core Version

1.15.3,0.15.0

AWS Provider Version

latest

Affected Resource(s)

aws_sns_topic_subscription

Expected Behavior

Run aws Subscribe in AWS china region, It shouble be successfully

Actual Behavior

but there is error: aws_sns_topic_subscription.results_updates_sqs_target: Creating... ╷ │ Error: creating SNS Topic Subscription: InvalidParameter: Invalid parameter: Attributes Reason: Unknown attribute FilterPolicyScope

check Cloudtrail, found auto add the parameter FilterPolicyScope, but china region now don't support this parameter

Relevant Error/Panic Output Snippet

│ Error: creating SNS Topic Subscription: InvalidParameter: Invalid parameter: Attributes Reason: Unknown attribute FilterPolicyScope

Terraform Configuration Files

resource "aws_sns_topic_subscription" "results_updates_sqs_target" {
    topic_arn = "${aws_sns_topic.results_updates.arn}"
    protocol  = "sqs"
    filter_policy = jsonencode(
    {
      "InitiatorCompanyRegion" = ["cn-north-1"]
    },)
    endpoint  = "${aws_sqs_queue.results_updates_queue.arn}"
}

Steps to Reproduce

just terrform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

Yes

nefnohack avatar Nov 30 '22 15:11 nefnohack

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

github-actions[bot] avatar Nov 30 '22 15:11 github-actions[bot]

Relates https://github.com/hashicorp/terraform-provider-aws/pull/28004.

ewbankkit avatar Nov 30 '22 16:11 ewbankkit

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Jan 08 '23 02:01 github-actions[bot]