Resource: aws_redshift_data_share_authorization

Terraform resource for managing an AWS Redshift Data Share Authorization.

Example Usage

Basic Usage

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"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

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