Skip to content

Commit

Permalink
fix(resources/template-writer): add IAM policy as customResource depe…
Browse files Browse the repository at this point in the history
…ndency
  • Loading branch information
Jonathan Barnett committed Jul 16, 2024
1 parent c351953 commit ce18904
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,9 @@
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
}
},
"DependsOn": [
"OpenApiGatewayToLambdaApiTemplateWriterPolicy5B3085E5"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
}
},
"DependsOn": [
"OpenApiGatewayToLambdaApiTemplateWriterPolicy5B3085E5"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
}
},
"DependsOn": [
"OpenApiGatewayToLambdaApiTemplateWriterPolicy5B3085E5"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export function createTemplateWriterCustomResource(
}
});

customResource.node.addDependency(templateWriterPolicy);

return {
s3Bucket: outputAsset.bucket,
s3Key: customResource.getAttString('TemplateOutputKey'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
}
},
"DependsOn": [
"TestTemplateWriterPolicy8177DE02"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
}
},
"DependsOn": [
"TestTemplateWriterPolicy8177DE02"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
}
Expand Down

0 comments on commit ce18904

Please sign in to comment.