diff --git a/aws/data_aws_unity_catalog_policy.go b/aws/data_aws_unity_catalog_policy.go index 926be71c2..15e4f97ff 100644 --- a/aws/data_aws_unity_catalog_policy.go +++ b/aws/data_aws_unity_catalog_policy.go @@ -61,37 +61,37 @@ func generateReadContext(ctx context.Context, d *schema.ResourceData, m *common. }) } policy.Statements = append(policy.Statements, &awsIamPolicyStatement{ - Sid: "ManagedFileEventsSetupStatement", - Effect: "Allow", - Actions: []string{ - "s3:GetBucketNotification", - "s3:PutBucketNotification", - "sns:ListSubscriptionsByTopic", - "sns:GetTopicAttributes", - "sns:SetTopicAttributes", - "sns:CreateTopic", - "sns:TagResource", - "sns:Publish", - "sns:Subscribe", - "sqs:CreateQueue", - "sqs:DeleteMessage", - "sqs:ReceiveMessage", - "sqs:SendMessage", - "sqs:GetQueueUrl", - "sqs:GetQueueAttributes", - "sqs:SetQueueAttributes", - "sqs:TagQueue", - "sqs:ChangeMessageVisibility", - "sqs:PurgeQueue", - }, - Resources: []string{ - fmt.Sprintf("arn:%s:s3:::%s", awsPartition, bucket), - "arn:aws:sqs:*:*:*", - "arn:aws:sns:*:*:*", - }, + Sid: "ManagedFileEventsSetupStatement", + Effect: "Allow", + Actions: []string{ + "s3:GetBucketNotification", + "s3:PutBucketNotification", + "sns:ListSubscriptionsByTopic", + "sns:GetTopicAttributes", + "sns:SetTopicAttributes", + "sns:CreateTopic", + "sns:TagResource", + "sns:Publish", + "sns:Subscribe", + "sqs:CreateQueue", + "sqs:DeleteMessage", + "sqs:ReceiveMessage", + "sqs:SendMessage", + "sqs:GetQueueUrl", + "sqs:GetQueueAttributes", + "sqs:SetQueueAttributes", + "sqs:TagQueue", + "sqs:ChangeMessageVisibility", + "sqs:PurgeQueue", + }, + Resources: []string{ + fmt.Sprintf("arn:%s:s3:::%s", awsPartition, bucket), + "arn:aws:sqs:*:*:*", + "arn:aws:sns:*:*:*", }, + }, &awsIamPolicyStatement{ - Sid: "ManagedFileEventsListStatement", + Sid: "ManagedFileEventsListStatement", Effect: "Allow", Actions: []string{ "sqs:ListQueues", @@ -101,7 +101,7 @@ func generateReadContext(ctx context.Context, d *schema.ResourceData, m *common. Resources: "*", }, &awsIamPolicyStatement{ - Sid: "ManagedFileEventsTeardownStatement", + Sid: "ManagedFileEventsTeardownStatement", Effect: "Allow", Actions: []string{ "sns:Unsubscribe",