Resource: awsRedshiftClusterIamRoles
Provides a Redshift Cluster IAM Roles resource.
\~> NOTE: A Redshift cluster's default IAM role can be managed both by this resource's defaultIamRoleArn
argument and the awsRedshiftCluster
resource's defaultIamRoleArn
argument. Do not configure different values for both arguments. Doing so will cause a conflict of default IAM roles.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.redshiftClusterIamRoles.RedshiftClusterIamRoles(this, "example", {
clusterIdentifier: "${aws_redshift_cluster.example.cluster_identifier}",
iamRoleArns: ["${aws_iam_role.example.arn}"],
});
Argument Reference
The following arguments are supported:
clusterIdentifier
- (Required) The name of the Redshift Cluster IAM Roles.iamRoleArns
- (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.defaultIamRoleArn
- (Optional) The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The Redshift Cluster ID.
Import
Redshift Cluster IAM Roless can be imported using the clusterIdentifier
, e.g.,