diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 7e379eea..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - versioning-strategy: increase - schedule: - interval: "weekly" diff --git a/package-lock.json b/package-lock.json index 2a44237e..60ab05fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9779,6 +9779,7 @@ } }, "packages/feature-env-handlers": { + "name": "@aligent/cdk-feature-env-handlers", "version": "0.1.0", "license": "GPL-3.0-only", "dependencies": { @@ -9858,7 +9859,7 @@ "@aws-sdk/client-sqs": "^3.421.0", "@aws-sdk/client-ssm": "^3.421.0", "@aws-solutions-constructs/aws-lambda-sqs-lambda": "^2.47.0", - "aws-cdk-lib": "^2.113.0" + "aws-cdk-lib": "2.113.0" } }, "packages/prerender-proxy": { diff --git a/packages/prerender-fargate/lib/prerender-fargate-options.ts b/packages/prerender-fargate/lib/prerender-fargate-options.ts index 371f8622..af28261a 100644 --- a/packages/prerender-fargate/lib/prerender-fargate-options.ts +++ b/packages/prerender-fargate/lib/prerender-fargate-options.ts @@ -105,6 +105,27 @@ export interface PrerenderFargateOptions { * @default - false */ usePrivateSubnets?: boolean; + + /** + * Specify a name for the ECS cluster + * + * @default - AWS generated cluster name + */ + clusterName?: string; + + /** + * Specify a name for the task definition family + * + * @default - AWS generated task definition family name + */ + taskDefinitionFamilyName?: string; + + /** + * Specify a name for the load balancer + * + * @default - AWS generated load balancer name + */ + loadBalancerName?: string; } /** diff --git a/packages/prerender-fargate/lib/prerender-fargate.ts b/packages/prerender-fargate/lib/prerender-fargate.ts index 8303fd14..5f343b07 100644 --- a/packages/prerender-fargate/lib/prerender-fargate.ts +++ b/packages/prerender-fargate/lib/prerender-fargate.ts @@ -119,6 +119,8 @@ export class PrerenderFargate extends Construct { const cluster = new ecs.Cluster(this, `${prerenderName}-cluster`, { vpc: vpc, + clusterName: + props.clusterName !== undefined ? props.clusterName : undefined, }); const directory = path.join(__dirname, "prerender"); @@ -162,8 +164,16 @@ export class PrerenderFargate extends Construct { containerPort: 3000, environment, secrets, + family: + props.taskDefinitionFamilyName !== undefined + ? props.taskDefinitionFamilyName + : undefined, }, publicLoadBalancer: true, + loadBalancerName: + props.loadBalancerName !== undefined + ? props.loadBalancerName + : undefined, assignPublicIp: true, listenerPort: 443, redirectHTTP: true, diff --git a/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts b/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts index 102c1c16..ba375cc7 100644 --- a/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts +++ b/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts @@ -23,6 +23,13 @@ export interface PrerenderRecacheApiOptions { * { "tokenABC": "https://URL_A,https://URL_B,...", ..., "tokenXYZ":"https://URL_Y,https://URL_Z" } */ tokenSecret: string; + + /** + * A name for the recache queue + * + * @default CloudFormation-generated name + */ + queueName?: string; } /** @@ -83,7 +90,11 @@ export class PrerenderRecacheApi extends Construct { timeout: Duration.seconds(120), }), deployDeadLetterQueue: false, - queueProps: { visibilityTimeout: Duration.minutes(60) }, + queueProps: { + visibilityTimeout: Duration.minutes(60), + queueName: + options.queueName !== undefined ? options.queueName : undefined, + }, }); } }