Terraform resource for managing an AWS Redshift Data Share Authorization.
resource "aws_redshift_data_share_authorization" "example" {
consumer_identifier = "012345678901"
data_share_arn = "arn:aws:redshift:us-west-2:012345678901:datashare:3072dae5-022b-4d45-9cd3-01f010aae4b2/example_share"
}
The following arguments are required:
consumer_identifier
- (Required) Identifier of the data consumer that is authorized to access the datashare. This identifier is an AWS account ID or a keyword, such as ADX
.data_share_arn
- (Required) Amazon Resource Name (ARN) of the datashare that producers are to authorize sharing for.The following arguments are optional:
allow_writes
- (Optional) Whether to allow write operations for a datashare.This resource exports the following attributes in addition to the arguments above:
id
- A comma-delimited string concatenating data_share_arn
and consumer_identifier
.managed_by
- Identifier of a datashare to show its managing entity.producer_arn
- Amazon Resource Name (ARN) of the producer.In Terraform v1.5.0 and later, use an import
block to import Redshift Data Share Authorization using the id
. For example:
import {
to = aws_redshift_data_share_authorization.example
id = "arn:aws:redshift:us-west-2:012345678901:datashare:3072dae5-022b-4d45-9cd3-01f010aae4b2/example_share,012345678901"
}
Using terraform import
, import Redshift Data Share Authorization using the id
. For example:
% terraform import aws_redshift_data_share_authorization.example arn:aws:redshift:us-west-2:012345678901:datashare:3072dae5-022b-4d45-9cd3-01f010aae4b2/example_share,012345678901