From ff8a73aff189602910ee53c4af742f18c27d3a13 Mon Sep 17 00:00:00 2001 From: Shane Earley Date: Tue, 31 Oct 2023 23:00:39 -0400 Subject: [PATCH] Fix nodes and blog cdk providers --- infrastructure/cdk/src/providers/blog.ts | 1 + infrastructure/cdk/src/providers/nodes.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/cdk/src/providers/blog.ts b/infrastructure/cdk/src/providers/blog.ts index 3ce1c92a5..0f5966f34 100644 --- a/infrastructure/cdk/src/providers/blog.ts +++ b/infrastructure/cdk/src/providers/blog.ts @@ -32,6 +32,7 @@ export class BlogStack extends cdk.Stack { const hackmdToken = ecs.Secret.fromSecretsManager( secretsmanager.Secret.fromSecretNameV2(this, pascalCase(hackmdTokenKey), kebabCase(hackmdTokenKey)) ) + const fargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, config.getFullStackResourceName(this.name, 'fargate'), { assignPublicIp: true, certificate, diff --git a/infrastructure/cdk/src/providers/nodes.ts b/infrastructure/cdk/src/providers/nodes.ts index c0d09272d..5a72e645a 100644 --- a/infrastructure/cdk/src/providers/nodes.ts +++ b/infrastructure/cdk/src/providers/nodes.ts @@ -19,13 +19,14 @@ export class NodesStack extends cdk.Stack { const { rootDomain, subdomains } = config const { hostedZone } = props - const nodesIp = secretsmanager.Secret.fromSecretNameV2(this, config.getFullStackResourceName(this.name, 'nodes-ip'), kebabCase(config.getFullStackResourceName(this.name, 'nodes-ip'))) + const nodesIpKey = 'casimir-nodes-ip' + const nodesIp = secretsmanager.Secret.fromSecretNameV2(this, pascalCase(nodesIpKey), kebabCase(nodesIpKey)) new route53.ARecord(this, config.getFullStackResourceName(this.name, 'a-record-api'), { recordName: `${subdomains.nodes}.${rootDomain}`, zone: hostedZone as route53.IHostedZone, target: route53.RecordTarget.fromIpAddresses(nodesIp.secretValue.unsafeUnwrap()), - ttl: cdk.Duration.minutes(1), + ttl: cdk.Duration.minutes(1) }) } } \ No newline at end of file