Now explicitly creates the IAM Role allowing APIGW to publish to CloudWatch. Customers can opt out by passing the disableAPILogging property to the ControlPlane props
Issue # 19
Closes #19
Reason for this change
Deployment into a fresh account fails without this change. Now creates the rest API construct with a flag to explicitly create the IAM Role that allows API GW to push to CloudWatch.
Description of changes
Added a new field to the ControlPlaneProps called disableAPILogging. It's optional with a default of false. Also modified docs to surface this change.
Description of how you validated changes
Wrote unit tests to validate the synthed template with and without the flag.
Now explicitly creates the IAM Role allowing APIGW to publish to CloudWatch. Customers can opt out by passing the
disableAPILogging
property to the ControlPlane propsIssue # 19
Closes #19
Reason for this change
Deployment into a fresh account fails without this change. Now creates the rest API construct with a flag to explicitly create the IAM Role that allows API GW to push to CloudWatch.
Description of changes
Added a new field to the
ControlPlaneProps
calleddisableAPILogging
. It's optional with a default of false. Also modified docs to surface this change.Description of how you validated changes
Wrote unit tests to validate the synthed template with and without the flag.
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.