Skip to content

Resource: awsRdsClusterRoleAssociation

Manages a RDS DB Cluster association with an IAM Role. Example use cases:

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.rdsClusterRoleAssociation.RdsClusterRoleAssociation(this, "example", {
  dbClusterIdentifier: "${aws_rds_cluster.example.id}",
  featureName: "S3_INTEGRATION",
  roleArn: "${aws_iam_role.example.arn}",
});

Argument Reference

The following arguments are supported:

  • dbClusterIdentifier - (Required) DB Cluster Identifier to associate with the IAM Role.
  • featureName - (Required) Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the supportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions.
  • roleArn - (Required) Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - DB Cluster Identifier and IAM Role ARN separated by a comma (,)

Import

awsRdsClusterRoleAssociation can be imported using the DB Cluster Identifier and IAM Role ARN separated by a comma (,), e.g.,

$ terraform import aws_rds_cluster_role_association.example my-db-cluster,arn:aws:iam::123456789012:role/my-role