hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

DynamoDB resource policy was implemented in as a standalone resource, making it impractical for global tables. #36840

Open gmaghera opened 5 months ago

gmaghera commented 5 months ago

Description

I've placed a feature request for DynamoDB resource policies https://github.com/hashicorp/terraform-provider-aws/issues/36569.

It was closed as a duplicate of https://github.com/hashicorp/terraform-provider-aws/issues/36502, and the feature was implemented according to the 36302.

One ticket asked for the resource policy to be an attribute of aws_dynamodb_table, and the other asked for a brand new resource.

The current implementation, with the new aws_dynamodb_resource_policy makes it impossible to create global tables via aws_dynamodb_table (via the global_secondary_index attribute). When a global table is created only the attributes of the aws_dynamodb_table resource are duplicated.

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue