terraform-aws-dynamodb
terraform-aws-dynamodb copied to clipboard
Implementing the `aws_dynamodb_resource_policy` resource to allow a user to set the table or stream's resource policy.
what
This minor change is to implement the aws_dynamodb_resource_policy resource, to allow a user to set the table or stream's resource policy. Two more variables are added, one for the table policy, the other for the stream. They are implemented separately (even if the resource is the same) to allow the user to set them as separate objects without adding complexity to terraform.
why
It can be useful, if you're implementing DynamoDB as a trigger for example, to set the right policy allowing that