Skip to content

Commit e29dbef

Browse files
authored
chore(apprunner): AWS App Runner adds 7 new compute configurations (#25001)
I tried vCPU 0.25 and Mem 0.5 with CFn and it was supported. - [AWS App Runner adds 7 new compute configurations](https://aws.amazon.com/about-aws/whats-new/2023/04/aws-app-runner-compute-configurations/) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 787f38a commit e29dbef

File tree

1 file changed

+45
-0
lines changed
  • packages/@aws-cdk/aws-apprunner-alpha/lib

1 file changed

+45
-0
lines changed

packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts

+45
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ export enum ImageRepositoryType {
2929
*
3030
*/
3131
export class Cpu {
32+
/**
33+
* 0.25 vCPU
34+
*/
35+
public static readonly QUARTER_VCPU = Cpu.of('0.25 vCPU');
36+
37+
/**
38+
* 0.5 vCPU
39+
*/
40+
public static readonly HALF_VCPU = Cpu.of('0.5 vCPU');
41+
3242
/**
3343
* 1 vCPU
3444
*/
@@ -39,6 +49,11 @@ export class Cpu {
3949
*/
4050
public static readonly TWO_VCPU = Cpu.of('2 vCPU')
4151

52+
/**
53+
* 4 vCPU
54+
*/
55+
public static readonly FOUR_VCPU = Cpu.of('4 vCPU')
56+
4257
/**
4358
* Custom CPU unit
4459
*
@@ -60,6 +75,16 @@ export class Cpu {
6075
* The amount of memory reserved for each instance of your App Runner service.
6176
*/
6277
export class Memory {
78+
/**
79+
* 0.5 GB(for 0.25 vCPU)
80+
*/
81+
public static readonly HALF_GB = Memory.of('0.5 GB')
82+
83+
/**
84+
* 1 GB(for 0.25 or 0.5 vCPU)
85+
*/
86+
public static readonly ONE_GB = Memory.of('1 GB')
87+
6388
/**
6489
* 2 GB(for 1 vCPU)
6590
*/
@@ -75,6 +100,26 @@ export class Memory {
75100
*/
76101
public static readonly FOUR_GB = Memory.of('4 GB')
77102

103+
/**
104+
* 6 GB(for 2 vCPU)
105+
*/
106+
public static readonly SIX_GB = Memory.of('6 GB')
107+
108+
/**
109+
* 8 GB(for 4 vCPU)
110+
*/
111+
public static readonly EIGHT_GB = Memory.of('8 GB')
112+
113+
/**
114+
* 10 GB(for 4 vCPU)
115+
*/
116+
public static readonly TEN_GB = Memory.of('10 GB')
117+
118+
/**
119+
* 12 GB(for 4 vCPU)
120+
*/
121+
public static readonly TWELVE_GB = Memory.of('12 GB')
122+
78123
/**
79124
* Custom Memory unit
80125
*

0 commit comments

Comments
 (0)