mirror of
https://github.com/langgenius/aws-cdk-for-dify.git
synced 2026-07-01 20:14:06 -04:00
fix: invalid ec2 instacne type (#1)
Co-authored-by: GareArc <chen4851@purude.edu>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
]
|
||||
},
|
||||
"context": {
|
||||
"env": "test",
|
||||
"env": "all",
|
||||
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
||||
"@aws-cdk/core:checkSecretUsage": true,
|
||||
"@aws-cdk/core:target-partitions": [
|
||||
|
||||
@@ -21,12 +21,6 @@ export const EC2_INSTANCE_MAP = {
|
||||
'8c16m': 'c7g.2xlarge',
|
||||
'16c32m': 'c7g.4xlarge',
|
||||
'32c64m': 'c7g.8xlarge',
|
||||
|
||||
'2c16m': 'r8g.large',
|
||||
'4c32m': 'r8g.xlarge',
|
||||
'8c64m': 'r8g.2xlarge',
|
||||
'16c128m': 'r8g.4xlarge',
|
||||
'32c256m': 'r8g.8xlarge',
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ export const prodConfig: ProdStackConfig = {
|
||||
desiredSize: 3,
|
||||
minSize: 1,
|
||||
maxSize: 3,
|
||||
instanceType: new InstanceType(EC2_INSTANCE_MAP['8c64m']),
|
||||
instanceType: new InstanceType(EC2_INSTANCE_MAP['16c64m']),
|
||||
diskSize: 100,
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user