Samwise Ganges
Samwise Ganges

Reputation: 552

How to reference existing AWS Lambda function in new SAM stack

I have existing Lambda functions that I created before starting to use SAM for management. I want to bring them into management using the SAM workflow. I want to make a new SAM stack for each of these so I can update them using the SAM CLI. This seems like a simple and obvious use case but I can't find how to do it. The answers on this question are not helpful.

Here are the things I have tried:

Is this just not possible? How are we supposed to start managing existing lambda functions using SAM? I would think there would be a straightforward process for this.

Upvotes: 1

Views: 316

Answers (1)

jarmod
jarmod

Reputation: 78842

While importing resources into an existing CloudFormation stack is possible, it's not supported in AWS SAM right now. Here's a open issue to track the feature request.

Upvotes: 1

Related Questions