Provides a Redshift Cluster IAM Roles resource.
resource "aws_redshift_cluster_iam_roles" "example" {
cluster_identifier = aws_redshift_cluster.example.cluster_identifier
iam_role_arns = [aws_iam_role.example.arn]
}
This resource supports the following arguments:
cluster_identifier
- (Required) The name of the Redshift Cluster IAM Roles.iam_role_arns
- (Optional) A list of IAM Role ARNs to associate with the cluster. A Maximum of 10 can be associated to the cluster at any time.default_iam_role_arn
- (Optional) The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created.This resource exports the following attributes in addition to the arguments above:
id
- The Redshift Cluster ID.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