Resource: aws_redshift_cluster_iam_roles

Provides a Redshift Cluster IAM Roles resource.

Example Usage

resource "aws_redshift_cluster_iam_roles" "example" {
  cluster_identifier = aws_redshift_cluster.example.cluster_identifier
  iam_role_arns      = [aws_iam_role.example.arn]
}

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 Cluster IAM Roless using the cluster_identifier. For example:

import {
  to = aws_redshift_cluster_iam_roles.examplegroup1
  id = "example"
}

Using terraform import, import Redshift Cluster IAM Roless using the cluster_identifier. For example:

% terraform import aws_redshift_cluster_iam_roles.examplegroup1 example