Skip to content

Commit

Permalink
update alb rule (#2851)
Browse files Browse the repository at this point in the history
  • Loading branch information
larisa17 authored Sep 11, 2024
1 parent bb03df2 commit 64a64a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/aws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ const albPassportXyzListenerRule = new aws.lb.ListenerRule(`passport-xyz-iam-htt
conditions: [
{
hostHeader: {
values: [passportXyzDomainName.apply((domain) => `iam.${domain}`)],
values: stack === "production" ?
[passportXyzDomainName.apply((domain) => `iam.${domain}`), `iam.passport.xyz`] : [passportXyzDomainName.apply((domain) => `iam.${domain}`)], // if it is on production, it should be also iam.passport.xyz
},
// pathPattern: {[]}
},
Expand Down

0 comments on commit 64a64a3

Please sign in to comment.