Daniel Jarrett
07/25/2021, 11:00 AMimport * as sst from "@serverless-stack/resources";
import * as cdk from '@aws-cdk/core';
import * as cfninc from '@aws-cdk/cloudformation-include';
import * as sam from '@aws-cdk/aws-sam';
export default class MyStack extends sst.Stack {
constructor(scope: <http://sst.App|sst.App>, id: string, props?: sst.StackProps) {
super(scope, id, props);
const cfnTemplate = new cfninc.CfnInclude(this, 'Template', {
templateFile: './test.yml',
}
);
const cfnFunction = cfnTemplate.getResource('ApiLambdaGET') as sam.CfnFunction;
//do something here wth cfnFunction
}
}
Frank
Frank
Frank
Frank
Daniel Jarrett
07/26/2021, 5:01 AM