Skip to content
v2.274.0

CpuArchitecture Class ​

The CpuArchitecture for Fargate Runtime Platform.

Example ​

ts
// Create a Task Definition for the Windows container to start
const taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {
  runtimePlatform: {
    operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,
    cpuArchitecture: ecs.CpuArchitecture.X86_64,
  },
  cpu: 1024,
  memoryLimitMiB: 2048,
});

taskDefinition.addContainer('windowsservercore', {
  logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),
  portMappings: [{ containerPort: 80 }],
  image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),
});

Properties ​

Methods ​

of(cpuArchitecture: string): CpuArchitecture // chainable@staticmethod def of(cpu_architecture: str) -> CpuArchitecturepublic static CpuArchitecture of(String cpuArchitecture)public static CpuArchitecture Of(string cpuArchitecture)func Of(CpuArchitecture *string) CpuArchitecturestatic#
Other cpu architecture.
1 parameter

Parameters

  • cpuArchitecturecpu_architecturecpuArchitecturecpuArchitectureCpuArchitecture — cpu architecture.