Resource: aws_rds_cluster_role_association

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

Example Usage

resource "aws_rds_cluster_role_association" "example" {
  db_cluster_identifier = aws_rds_cluster.example.id
  feature_name          = "S3_INTEGRATION"
  role_arn              = 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:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import aws_rds_cluster_role_association using the DB Cluster Identifier and IAM Role ARN separated by a comma (,). For example:

import {
  to = aws_rds_cluster_role_association.example
  id = "my-db-cluster,arn:aws:iam::123456789012:role/my-role"
}

Using terraform import, import aws_rds_cluster_role_association using the DB Cluster Identifier and IAM Role ARN separated by a comma (,). For example:

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