I'm experimenting with AWS CDK by converting a console-developed application (just API Gateway and Lambdas for now). All is well--I can hit the API's resources and methods and the appropriate lambdas get executed.
I'm trying to understand what triggers a deployment (and what doesn't). For example, if I try to change the API's endpoint type from the default (EDGE) to REGIONAL:
const api = new apigateway.RestApi(this, "cy-max-api", { restApiName: "CY Max Service", description: "CDK version of Max AWS demo app.", endpointConfiguration: [EndpointType.REGIONAL] // <-- add only this line and deploy }); and deploy (cdk deploy), nothing is deployed (I checked the logs, console says no stack changes). I even tried forcing the deploy (cdk deploy -f)--no joy.
I suspect this is the expected behavior, but would like to understand why this change doesn't trigger a deploy (and what would be necessary to force one).
https://stackoverflow.com/questions/65556559/aws-cdk-not-deploying-api-gateway-change-edge-to-regional January 04, 2021 at 09:06AM
没有评论:
发表评论