I am hoping for some clarification around some terms I have been seeing on the web as it pertains to AWS and specifically lambdas. For starters, I would like the know how the commands sam build/deploy
work versus setting up a CodeBuild job. Do I need a CodeBuild job to run those commands? What files specifically does the sam deploy
command look for? Does it look for serverless.yml
or template.yml
or both? What is a sam.yml
file or are they antiquated?
I have an app with a CodeBuild pipeline for a lambda, but I am expanding my repo to contain multiple lambdas and thinking about putting a serverless.yml
file in each lambda directory, but I don't want to create a CodeBuild job and buildspec
for each one. I assume sam deploy
searches for all template.yml
and serverless.yml
files and constructs your stack as a whole (and updates only what needs to be updated?)
App is in Node if curious using API Gateway. Any insight would be appreciated.
question from:
https://stackoverflow.com/questions/65891964/sam-serverless-codebuild-clarification 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…