Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Nov 1, 2023
2 parents 783a59e + ff8a73a commit cae0e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions infrastructure/cdk/src/providers/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions infrastructure/cdk/src/providers/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
}

0 comments on commit cae0e32

Please sign in to comment.