1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi JasonKao,
please refer to this walkthrough on how to create a cross-stack reference: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-crossstackref.html which will allow you to reference the API Gateway resource from the first stack in the second one.
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
After querying SAM-related documents [1], I found that the document has the following description: RestApiId: This cannot reference an AWS::Serverless::Api resource defined in another template. This also means that other RestApiId cannot be referenced in the current template.
Reference documents: [1] https://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/sam-property-function-api.html#sam-function-api-restapiid
Please be aware that the documentation and restriction that you linked to are specific to SAM (Serverless Application Model) with is a basically an extension of CloudFormation.
Yes, I use SAM Deploy CloudFormation.