This file contains hidden or 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
| resources: | |
| Description: Demo Site | |
| Conditions: | |
| isProd: {"Fn::Equals" : ["${self:custom.stageFlag}", "prod"]} | |
| isRC: {"Fn::Equals" : ["${self:custom.stageFlag}", "rc"]} | |
| isDev: {"Fn::Equals" : ["${self:custom.stageFlag}", "dev"]} | |
| isProdOrRC: {"Fn::Or": [{"Condition": "isProd"}, {"Condition": "isRC" }]} | |
| Resources: | |
| ProxyEntry: | |
| Type: 'Custom::MarketingStackProxyEntry' |
This file contains hidden or 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
| import * as cr from '@aws-cdk/custom-resources'; | |
| import * as logs from '@aws-cdk/aws-logs'; | |
| import * as s3 from '@aws-cdk/aws-s3'; | |
| import * as sqs from '@aws-cdk/aws-sqs'; | |
| import * as iam from '@aws-cdk/aws-iam'; | |
| import {Construct} from '@aws-cdk/core'; | |
| // You can drop this construct anywhere, and in your stack, invoke it like this: | |
| // const s3ToSQSNotification = new S3NotificationToSQSCustomResource(this, 's3ToSQSNotification', existingBucket, queue); |
This file contains hidden or 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
| // npm install await-to-js | |
| const { to } = require("await-to-js"); | |
| const { CognitoIdentity } = require("aws-sdk"); | |
| const identity = new CognitoIdentity(); | |
| const IDENTITY_POOL_ID = "<your identity pool id>"; | |
| exports.handler = async (event) => { | |
| const { issuer } = event.identity; |
OlderNewer