Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

use CloudFormation DocumentationPart resources instead of direct creation #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chris-armstrong
Copy link

The plugin at the moment makes AWS calls to create the documentation part resources for Request/Response Body, Path Params, Header Params, etc. A CloudFormation resource type now exists for these (AWS::ApiGateway::DocumentationPart). This patch changes the plugin to use the new resource type.

NOTE: This ought to be considered a breaking change to the plugin, because existing stacks will need to be cleaned up and redeployed, otherwise there will be a conflict with the existing documentation part resources (created without CF) and new ones (added with CF).

It should also address an underlying assumption (bug?) that the stack manages the API Gateway resource - where you have stack splitting (e.g. to manage the CF 200 resources limit), the documentation part resources from another stack are blown away before this stack's documentation parts are installed. The patch addresses this by only using CF resources for the documentation parts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant