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
import { | |
CloudFormationResource, | |
CloudFormationResources, | |
} from 'serverless/aws'; | |
import { findKey } from 'lodash'; | |
interface CloudFormationReference { | |
Ref: string; | |
} |
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
import { DynamoDB } from 'aws-sdk'; | |
import { ref } from './intrinsic'; | |
import cloudformationResources, { MyTable } from './resources'; | |
export default { | |
handler:'create.main', | |
environment: { | |
TABLE_NAME: ref(cloudformationResources, MyTable) | |
}, |
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
import type { AWS } from '@serverless/typescript'; | |
import { App, Stack, Fn } from 'aws-cdk-lib'; | |
// import { CfnApiMapping } from 'aws-cdk-lib/aws-apigatewayv2' | |
import { Certificate } from 'aws-cdk-lib/aws-certificatemanager' | |
import { ApiMapping, DomainName, HttpApi, HttpStage } from '@aws-cdk/aws-apigatewayv2-alpha'; | |
const app = new App(); | |
class MyStack extends Stack { | |
constructor(scope, id) { | |
super(scope, id); |
OlderNewer