Resource: aws_redshiftserverless_usage_limit

Creates a new Amazon Redshift Serverless Usage Limit.

Example Usage

resource "aws_redshiftserverless_workgroup" "example" {
  namespace_name = aws_redshiftserverless_namespace.example.namespace_name
  workgroup_name = "example"
}

resource "aws_redshiftserverless_usage_limit" "example" {
  resource_arn = aws_redshiftserverless_workgroup.example.arn
  usage_type   = "serverless-compute"
  amount       = 60
}

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 Serverless Usage Limits using the id. For example:

import {
  to = aws_redshiftserverless_usage_limit.example
  id = "example-id"
}

Using terraform import, import Redshift Serverless Usage Limits using the id. For example:

% terraform import aws_redshiftserverless_usage_limit.example example-id