How to make multiple SAM web apps from the same code base?

0

I built a webapp for 1 client using AWS sam. The code lives on a single git account and whenever I have changes to push, I use the SAM CLI to deploy the new changes. The app has a website, with a backend db.

I recently deployed another version of the same app for a 2nd client. The 2nd app has a unique website, with a unique backend db. Now to deploy changes I have been using the SAM CLI to update each app, using a different config-env for each app.

How would I go about scaling this up to 10 clients with 10 websites and 10 backend dbs, whilst maintaining one single codebase, without the need to run the update script 10 times?

1개 답변
0

Hi

SAM CLI doesn't have the possibility to deploy several config-env in parallel. You probably need to create your own automation using tools like Github Actions, Jenkins, or GitLab Pipelines.

Alternatively move away from SAM and SAM CLI and use CloudFormation StackSets instead.

profile picture
전문가
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠