Skip to content
v2.274.0

RuntimePlatform Struct ​

The interface for Runtime Platform.

Example ​

ts
declare const cluster: ecs.Cluster;
const applicationLoadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {
  cluster,
  memoryLimitMiB: 512,
  taskImageOptions: {
    image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),
  },
  minHealthyPercent: 100,
  runtimePlatform: {
    cpuArchitecture: ecs.CpuArchitecture.ARM64,
    operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,
  },
});

Properties ​

cpuArchitectureCpuArchitecturecpu_architectureCpuArchitecturecpuArchitectureCpuArchitectureCpuArchitectureCpuArchitectureCpuArchitectureCpuArchitecture= Undefined.#
The CpuArchitecture for Fargate Runtime Platform.
operatingSystemFamilyOperatingSystemFamilyoperating_system_familyOperatingSystemFamilyoperatingSystemFamilyOperatingSystemFamilyOperatingSystemFamilyOperatingSystemFamilyOperatingSystemFamilyOperatingSystemFamily= Undefined.#
The operating system for Fargate Runtime Platform.