-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(apigateway-helper): fixed condition for cloudWatchRole creation #468
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
] | ||
} | ||
}); | ||
expect(stack).toCountResources("AWS::ApiGateway::Account", 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little more explicit to use:
expect(stack).not.toHaveResourceLike("AWS::ApiGateway::Account", {});
cloudWatchRole: false | ||
}); | ||
|
||
expect(stack).toCountResources("AWS::ApiGateway::Account", 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar change to use the .not. operator
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue #445, if available:
Description of changes:
-If cloudWatchRole is false then we create no role
-If cloudWatchRole is not false then we create a role using our function (More fine grained role than the CDK)
-Made apiGatewayCloudWatchRole an optional pattern prop since it can be undefined
-Added test to check if no AWS::ApiGateway::Account gets created
-Updated multiple README.md
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
fixes #445