Download serverless application from AWS

50 Views Asked by At

I have just joined a new project developed entirely on AWS, the project consists of several APIs with Lambda functions grouped in applications.

The thing is that the developer who was in charge of this project is no longer here and I can't contact him. The code is only accessible from the lambda editor, I don't have access to any repository or anything like that. The project seems to have been managed using SAM client.

My main issue is that I can download the code for each lambda separately along with its template, but when I make changes locally and try to upload the changes, SAM client detects that the changes I want to make involve uploading the new and deleting all the old, since only that function is included in the template.

Is there any way to download the template of each application (not each function) along with the code? I have looked into sam sync command but it seems that it only serves to upload changes from local to AWS, and not the other way around.

This is my first experience with such a project and I don't have much idea how to do it. I would like to have the code on local, manage it through a repository and use SAM client to deploy the changes.

Is this possible? What is the right way to handle a project like this

I have just joined a new project developed entirely on AWS, the project consists of several APIs with Lambda functions grouped in applications.

The thing is that the developer who was in charge of this project is no longer here and I can't contact him. The code is only accessible from the lambda editor, I don't have access to any repository or anything like that. The project seems to have been managed using SAM client.

My main issue is that I can download the code for each lambda separately along with its template, but when I make changes locally and try to upload the changes, SAM client detects that the changes I want to make involve uploading the new and deleting all the old, since only that function is included in the template.

Is there any way to download the template of each application (not each function) along with the code? I have looked into sam sync command but it seems that it only serves to upload changes from local to AWS, and not the other way around.

This is my first experience with such a project and I don't have much idea how to do it. I would like to have the code on local, manage it through a repository and use SAM client to deploy the changes.

Is this possible? What is the right way to handle a project like this.

UPDATE

After download the Cloudformation template, now it seems to detect the other lambdas, but when I try to deploy a new sample lambda (just to check out its working fine), it now detect changes in all lambdas.

Any idea of why it does it?

Stack changeset

0

There are 0 best solutions below