Workgroup
Creates a new Amazon Redshift Serverless Workgroup.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshiftserverless.Workgroup("example", {
namespaceName: "concurrency-scaling",
workgroupName: "concurrency-scaling",
});
import pulumi
import pulumi_aws as aws
example = aws.redshiftserverless.Workgroup("example",
namespace_name="concurrency-scaling",
workgroup_name="concurrency-scaling")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.RedshiftServerless.Workgroup("example", new()
{
NamespaceName = "concurrency-scaling",
WorkgroupName = "concurrency-scaling",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftserverless"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshiftserverless.NewWorkgroup(ctx, "example", &redshiftserverless.WorkgroupArgs{
NamespaceName: pulumi.String("concurrency-scaling"),
WorkgroupName: pulumi.String("concurrency-scaling"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshiftserverless.Workgroup;
import com.pulumi.aws.redshiftserverless.WorkgroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Workgroup("example", WorkgroupArgs.builder()
.namespaceName("concurrency-scaling")
.workgroupName("concurrency-scaling")
.build());
}
}
resources:
example:
type: aws:redshiftserverless:Workgroup
properties:
namespaceName: concurrency-scaling
workgroupName: concurrency-scaling
Import
Using pulumi import
, import Redshift Serverless Workgroups using the workgroup_name
. For example:
$ pulumi import aws:redshiftserverless/workgroup:Workgroup example example
Properties
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
An array of parameters to set for more control over a serverless database. See Config Parameter
below.
The endpoint that is created from the workgroup. See Endpoint
below.
The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries, specified in Redshift Processing Units (RPUs).
The name of the namespace.
A value that specifies whether the workgroup can be accessed from a public network.
An array of security group IDs to associate with the workgroup.
An array of VPC subnet IDs to associate with the workgroup. When set, must contain at least three subnets spanning three Availability Zones. A minimum number of IP addresses is required and scales with the Base Capacity. For more information, see the following AWS document.
The Redshift Workgroup ID.
The name of the workgroup. The following arguments are optional: