2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
As SAM is based on CloudFormation, you can import resources to it.
You'll need to use the CLI for it, as the console doesn't support the import when the template has the Transform section (reference).
Here is more information on how to do the import: Import an existing resource into a stack using the AWS CLI.
Check the overview of the import process.
répondu il y a 2 ans
1
Try exporting the existing Lambda function's SAM template: Under Actions > Export Function then choose "Download AWS SAM File" to download the function SAM template. I think you should be able to tweak it to your needs
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a 6 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 10 mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
Thanks, I also got to know about this approach but still I have one question, existing lambdas have already connected with API Gateways, Step functions, Cloud watch events as triggers. is there any way to import these all also cloud formation stack?? Like I wanted to move these lambdas with all it's triggers to sam.