-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
6,093 additions
and
11,191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
HOSTED_ZONE_ID= | ||
HOSTED_ZONE_NAME= | ||
ALB_DOMAIN_NAME= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ node_modules | |
cdk.out | ||
|
||
# Stack outputs | ||
outputs.json | ||
outputs.json | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/usr/bin/env node | ||
import "source-map-support/register"; | ||
import * as cdk from "@aws-cdk/core"; | ||
import * as cdk from "aws-cdk-lib"; | ||
import { CognitoStack } from "../lib/cognito-stack"; | ||
import "dotenv/config"; | ||
|
||
const { HOSTED_ZONE_ID, HOSTED_ZONE_NAME, ALB_DOMAIN_NAME } = process.env; | ||
|
||
if (!HOSTED_ZONE_ID || !HOSTED_ZONE_NAME || !ALB_DOMAIN_NAME) { | ||
throw new Error( | ||
"Please create an .env file with values for HOSTED_ZONE_ID, HOSTED_ZONE_NAME and ALB_DOMAIN_NAME" | ||
); | ||
} | ||
|
||
const app = new cdk.App(); | ||
new CognitoStack(app, "AwsJwtCognitoTestStack", { | ||
synthesizer: new cdk.DefaultStackSynthesizer({ | ||
qualifier: "test", | ||
}), | ||
albDomainName: ALB_DOMAIN_NAME, | ||
hostedZoneId: HOSTED_ZONE_ID, | ||
hostedZoneName: HOSTED_ZONE_NAME, | ||
}); |
Oops, something went wrong.