Skip to content

Instantly share code, notes, and snippets.

@rfpedrosa
Last active January 26, 2021 18:10
Show Gist options
  • Select an option

  • Save rfpedrosa/f8d0d8312d6b6ec276a67d5383756a6a to your computer and use it in GitHub Desktop.

Select an option

Save rfpedrosa/f8d0d8312d6b6ec276a67d5383756a6a to your computer and use it in GitHub Desktop.
Example cdk.json to test AWS CDK App Template deployment
{
"app": "npx ts-node bin/aws-cdk.ts",
"context": {
"app:name": "my-app",
"app:fullname": "My Awesome App",
"app:prodAwsAccountNumber": "",
"app:prodAwsRegion": "us-east-1",
"app:nonProdAwsAccountNumber": "[YOUR_NON_PROD_AWS_SUBACCOUNT_NUMBER]",
"app:nonProdAwsRegion": "us-east-1",
"@aws-cdk/core:enableStackNameDuplicates": "true",
"aws-cdk:enableDiffNoFail": "true",
"[YOUR_NON_PROD_AWS_SUBACCOUNT_NUMBER]:dev:userpool:webclient:callbackUrls": "http://localhost:3000",
"[YOUR_NON_PROD_AWS_SUBACCOUNT_NUMBER]:dev:userpool:webclient:logoutUrls": "http://localhost:3000/logout",
"[YOUR_NON_PROD_AWS_SUBACCOUNT_NUMBER]:test:aws:elbv2:listener:443:SSLCertificateArns": null,
"[YOUR_NON_PROD_AWS_SUBACCOUNT_NUMBER]:test:userpool:webclient:callbackUrls": "http://localhost:3000,https://your_friendly_test_subdomain.com",
"[YOUR_NON_PROD_AWS_SUBACCOUNT_NUMBER]:test:userpool:webclient:logoutUrls": "http://localhost:3000/logout,https://your_friendly_test_subdomain.com/logout",
"[YOUR_PROD_AWS_SUBACCOUNT_NUMBER]:prod:aws:elbv2:listener:443:SSLCertificateArns": "arn:aws:acm:us-east-1:[YOUR_PROD_AWS_SUBACCOUNT_NUMBER]:certificate/[UNIQUE_ID]",
"[YOUR_PROD_AWS_SUBACCOUNT_NUMBER]:prod:userpool:webclient:callbackUrls": "https://your_friendly_prod_domain.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment