InstanceSize

class aws_cdk.aws_ec2.InstanceSize(value)

Bases: Enum

What size of instance to use.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc

cluster = rds.DatabaseCluster(self, "Database",
    engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
    writer=rds.ClusterInstance.provisioned("writer",
        instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
    ),
    serverless_v2_min_capacity=6.5,
    serverless_v2_max_capacity=64,
    readers=[
        # will be put in promotion tier 1 and will scale with the writer
        rds.ClusterInstance.serverless_v2("reader1", scale_with_writer=True),
        # will be put in promotion tier 2 and will not scale with the writer
        rds.ClusterInstance.serverless_v2("reader2")
    ],
    vpc=vpc
)

Attributes

LARGE

Instance size LARGE (large).

MEDIUM

Instance size MEDIUM (medium).

METAL

Instance size METAL (metal).

MICRO

Instance size MICRO (micro).

NANO

Instance size NANO (nano).

SMALL

Instance size SMALL (small).

XLARGE

Instance size XLARGE (xlarge).

XLARGE10

Instance size XLARGE10 (10xlarge).

XLARGE112

Instance size XLARGE112 (112xlarge).

XLARGE12

Instance size XLARGE12 (12xlarge).

XLARGE16

Instance size XLARGE16 (16xlarge).

XLARGE16METAL

Instance size XLARGE16METAL (metal-16xl).

XLARGE18

Instance size XLARGE18 (18xlarge).

XLARGE2

Instance size XLARGE2 (2xlarge).

XLARGE24

Instance size XLARGE24 (24xlarge).

XLARGE24METAL

Instance size XLARGE24METAL (metal-24xl).

XLARGE3

Instance size XLARGE3 (3xlarge).

XLARGE32

Instance size XLARGE32 (32xlarge).

XLARGE32METAL

Instance size XLARGE32METAL (metal-32xl).

XLARGE4

Instance size XLARGE4 (4xlarge).

XLARGE48

Instance size XLARGE48 (48xlarge).

XLARGE48METAL

Instance size XLARGE48METAL (metal-48xl).

XLARGE56

Instance size XLARGE56 (56xlarge).

XLARGE6

Instance size XLARGE6 (6xlarge).

XLARGE8

Instance size XLARGE8 (8xlarge).

XLARGE9

Instance size XLARGE9 (9xlarge).

XLARGE96

Instance size XLARGE96 (96xlarge).