Skip to content
v2.275.0

InstanceConfigurationProperty Struct ​

Describes the runtime configuration of an AWS App Runner service instance (scaling unit).

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const instanceConfigurationProperty: apprunner.CfnService.InstanceConfigurationProperty = {
  cpu: 'cpu',
  instanceRoleArn: 'instanceRoleArn',
  memory: 'memory',
};

Properties ​

cpuoptionalstringcpuoptionalstrcpuoptionalStringCpuoptionalstringCpuoptional*string#
The number of CPU units reserved for each instance of your App Runner service.

Default: 1 vCPU

instanceRoleArnoptionalstringinstance_role_arnoptionalstrinstanceRoleArnoptionalStringInstanceRoleArnoptionalstringInstanceRoleArnoptional*string#
The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service.

These are permissions that your code needs when it calls any AWS APIs.

memoryoptionalstringmemoryoptionalstrmemoryoptionalStringMemoryoptionalstringMemoryoptional*string#
The amount of memory, in MB or GB, reserved for each instance of your App Runner service.

Default: 2 GB