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