Skip to content

Commit

Permalink
Fix cloudflare record (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
larisa17 authored Nov 22, 2024
1 parent 2fdaaba commit 35903af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions infra/aws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export const ROUTE53_DOMAIN_XYZ = op.read.parse(
export const VC_SECRETS_ARN = op.read.parse(
`op://DevOps/passport-scroll-badge-service-${stack}-env/ci/VC_SECRETS_ARN`
);

const CLOUDFLARE_ZONE_ID = op.read.parse(
`op://DevOps/passport-scroll-badge-service-${stack}-env/ci/CLOUDFLARE_ZONE_ID`
);
export const DOCKER_IMAGE_TAG = `${process.env.DOCKER_IMAGE_TAG || ""}`;

const current = aws.getCallerIdentity({});
Expand Down Expand Up @@ -150,7 +152,7 @@ const cloudflareIamRecord =
stack === "production"
? new cloudflare.Record(`scroll-passport-xyz-record`, {
name: `scroll`,
zoneId: passportXyzHostedZoneId,
zoneId: CLOUDFLARE_ZONE_ID,
type: "CNAME",
value: albDnsName,
allowOverwrite: true,
Expand Down

0 comments on commit 35903af

Please sign in to comment.