--- layout: "aws" page_title: "AWS: aws_redshift_service_account" sidebar_current: "docs-aws-datasource-redshift-service-account" description: |- Get AWS Redshift Service Account ID for storing audit data in S3. --- # aws\_redshift\_service\_account Use this data source to get the Service Account ID of the [AWS Redshift Account](http://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-enable-logging) in a given region for the purpose of allowing Redshift to store audit data in S3. ## Example Usage ```hcl data "aws_redshift_service_account" "main" {} resource "aws_s3_bucket" "bucket" { bucket = "tf-redshift-logging-test-bucket" force_destroy = true policy = <