-
Hi, I started using the Is there a setting for this or do I have to do anything special for it to reimport the Open API Spec? const api = new SpecRestApi(this, 'rest-api', {
apiDefinition: ApiDefinition.fromBucket(bucket, 'rest-api.yaml')
}); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As the |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
As the
rest-api.yaml
is stored in the S3 bucket and apiDefinition points to the location of that path, the synthesized CFN template from CDK will remain unchanged and I don't think the re-deploy will trigger API update. I don't think there is an option to force redeployment. I would recommend update the filename likerest-api.v0.1.1.yaml
every time you update and upload the definition file to S3 and update the cdk accordingly.