You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a very common case to have CDK apps with a single stack, in which case there's currently too much boilerplate:
import{App,Stack}from'aws-cdk';// boilerplateimport{Topic}from'@aws-cdk/sns';import{Table}from'@aws-cdk/dynamodb';// boilerplateconstapp=newApp(process.argv);conststack=newStack(app,'my-stack');// actual interesting codenewTopic(stack,'MyTopic');newTable(stack,'MyTable');// boilerplateprocess.stdout.write(app.run());
The vision is something like:
import { stack } from 'aws-cdk'; // wish we could get rid of this too, but that's ok
import { Topic } from '@aws-cdk/sns';
import { Table } from '@aws-cdk/dynamodb';
new Topic(stack, 'MyTopic');
new Table(stack, 'MyTable');
It is a very common case to have CDK apps with a single stack, in which case there's currently too much boilerplate:
The vision is something like:
Then, don't even need to run
tsc
:cdk -a my-app.ts --name my-stack synth Resources: MyTopic: Type: AWS::SNS::Topic MyTable: Type: AWS::DynamoDB::Table # ...
Naturally, we need a solution that works for all supported languages.
The text was updated successfully, but these errors were encountered: