Fix ALB listener default action, auto-import numberOfAzs, and correct docs
- Fix HTTP listener in spicy-alb.ts missing default action when no certificate is provided, which would cause CDK synth to fail - Auto-import numberOfAzs from VPC stack exports (NumberOfAZs) in cluster, service, and ALB stacks when not provided via context - Fix CDK_SYNTH_EXAMPLES.md ALB examples using raw vpcId/subnetIds that don't match the actual fromContext() implementation (requires clusterName) - Fix docs overstating "only clusterName required" to list actual required params - Remove package-lock.json and add to .gitignore (project uses pnpm) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ Deploy ECS services with mixed capacity provider strategies for EC2 + Fargate bu
|
||||
|
||||
### Minimal Jenkinsfile (EC2 Only) - Using CloudFormation Imports
|
||||
|
||||
**Minimal props:** Only `clusterName` required. VPC info auto-imports from cluster stack exports.
|
||||
**Minimal required props:** `clusterName`, `numberOfAzs`, `serviceName`, `image`, `containerPort`, and tags (`ownerTag`, `productTag`). VPC info auto-imports from cluster/VPC stack exports.
|
||||
|
||||
```groovy
|
||||
@Library(["spicy-automation@main"]) _
|
||||
@@ -49,11 +49,11 @@ spicyECSService(
|
||||
- VPC stack name from `${clusterStackName}-VPCStackName` (cluster stack export)
|
||||
- VPC ID from `${clusterStackName}-VPC` (cluster stack export)
|
||||
- VPC CIDR from `${vpcStackName}-VPCCIDR` (VPC stack export, using imported VPC stack name)
|
||||
- Number of AZs from `${vpcStackName}-NumberOfAZs` (VPC stack export, or override with `numberOfAzs` parameter)
|
||||
- Private subnets from `${vpcStackName}-PrivateSubnetA1ID`, etc. (VPC stack exports)
|
||||
- Number of AZs from `${vpcStackName}-NumberOfAZs` (VPC stack export)
|
||||
- Logs bucket from `${clusterStackName}-logs-s3-bucket` (cluster stack export)
|
||||
|
||||
**Note:** The service stack imports the VPC stack name from the cluster stack export `${clusterStackName}-VPCStackName`, then uses that to import all VPC details (CIDR, subnets, AZs) from the VPC stack exports.
|
||||
**Note:** The service stack imports the VPC stack name from the cluster stack export `${clusterStackName}-VPCStackName`, then uses that to import all VPC details (CIDR, subnets, AZs) from the VPC stack exports. `numberOfAzs` is required by the Jenkins pipeline but auto-imports from VPC stack exports when using CDK directly.
|
||||
|
||||
### Mixed Capacity Strategy (EC2 + Fargate Burst)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user