Resource: aws_redshift_endpoint_authorization

Creates a new Amazon Redshift endpoint authorization.

Example Usage

resource "aws_redshift_endpoint_authorization" "example" {
  account            = "01234567910"
  cluster_identifier = aws_redshift_cluster.example.cluster_identifier
}

Argument Reference

This resource supports the following arguments:

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 endpoint authorization using the id. For example:

import {
  to = aws_redshift_endpoint_authorization.example
  id = "01234567910:cluster-example-id"
}

Using terraform import, import Redshift endpoint authorization using the id. For example:

% terraform import aws_redshift_endpoint_authorization.example 01234567910:cluster-example-id