1 Answer
- Newest
- Most votes
- Most comments
0
You must export the Rest API ID at the end of the current Cloudformation Template where the API Gateway is being created:
Outputs:
VPC:
Description: Demo
Value: !Ref PetStore
Export:
Name: PetStoreRestApiID
Then in the new Cloudformation template you must create a API Gateway Resource and reference the Rest API ID from the previous Cloudformation template:
Resources:
NewPathInAPI:
"Type" : "AWS::ApiGateway::Resource"
Properties:
.
.
.
RestApiId:
Fn::ImportValue:
PetStoreRestApiID
answered 3 months ago
Relevant content
- Accepted Answerasked 6 years ago
- AWS OFFICIALUpdated 10 months ago