Creates a new Amazon Redshift resource policy to allow specific actions on a Redshift cluster.

Terraform Template

resource "aws_redshift_resource_policy" "example" {
  policy = jsonencode({
 Version = "2012-10-17"
 Statement = [{
 Effect = "Allow"
 Principal = {
 AWS = "arn:aws:iam::12345678901:root"
 }
 Action = "redshift:CreateInboundIntegration"
 Resource = aws_redshift_cluster.example.cluster_namespace_arn
 Sid = ""
 }]
 })
  resource_arn = "aws_redshift_cluster.example.cluster_namespace_arn"
}