Skip to content

gkilcaus/devopstask5-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devopstask5-lambda

  • lambda_function.py - python based lambda function for scheduling EC2 shutdown/startup
    • requirements.txt - python dependencies for lambda
  • template.yaml - AWS SAM template to build function and related IAM Role
  • buildspec.yml - CodeBuild template to provision/update function using AWS SAM

Manual deployment of SAM template

sam build
sam package --s3-bucket <s3_bucket> --s3-prefix sampkg-code --output-template-file packaged.yaml
sam deploy --template-file packaged.yaml --stack-name <stack_name> --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM

destroy

aws cloudformation delete-stack --stack-name <stack_name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages