Skip to content

Commit 1ae402d

Browse files
authored
updated AWS CDK API for VPC and StateMachine constructs (#8)
1 parent 5dfd732 commit 1ae402d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/stepfunctions-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class StepFunctionsStack extends Stack {
170170
const definition = sfn.Chain.start(parallel).next(vacuumAnalyze).next(successNotification).next(succeed);
171171

172172
this.stateMachine = new sfn.StateMachine(this, 'ServerlessRSQLETLFramework', {
173-
definition,
173+
definitionBody: sfn.DefinitionBody.fromChainable(definition),
174174
timeout: Duration.hours(2),
175175
role: this.stepFunctionsRole,
176176
});

lib/vpc-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class VpcStack extends Stack {
99
super(scope, id, props);
1010

1111
this.vpc = new ec2.Vpc(this, 'RedshiftVPC', {
12-
cidr: '10.0.0.0/16',
12+
ipAddresses: ec2.IpAddresses.cidr('10.0.0.0/16'),
1313
maxAzs: 3,
1414
subnetConfiguration: [
1515
{

0 commit comments

Comments
 (0)