- DevOps for Serverless Applications
- Shashikant Bangera
- 169字
- 2021-07-16 17:35:35
Resources
When we create Lambda functions, they might be dependent on many different types of infrastructure resources, such as AWS, DynamoDB or AWS S3, so we can define these resources within the serverless.yml file and deploy them. When we add these resources, they get added to the serverless.yml file, and when they are deployed, they get added to the CloudFormation stack and are executed at serverless deploy. We can look at the following example to see how these resources are defined:
resources:
Resources:
NewResource:
Type: AWS::S3::Bucket
Properties:
BucketName: my-s3-bucket
You can refer to the following link for more details on resources and to see which resources are available using only AWS Lambda: https://serverless.com/framework/docs/providers/aws/guide/resources/
Let's look at a simple example of Serverless Framework using AWS Lambda.
You will need the following prerequisites for this:
- A free AWS account needs to be created
- Nodejs 4.0 and higher must be installed on the local machine
- AWS CLI can also be installed, but this is optional
推薦閱讀
- Getting Started with oVirt 3.3
- Kali Linux滲透測試全流程詳解
- 曝光:Linux企業運維實戰
- 嵌入式Linux系統開發:基于Yocto Project
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- 混沌工程:復雜系統韌性實現之道
- Python基礎教程(第3版)
- Mobile First Design with HTML5 and CSS3
- Hands-On UX Design for Developers
- Kali Linux高級滲透測試
- 精解Windows 10
- Linux系統最佳實踐工具:命令行技術
- Windows 7實戰從入門到精通
- Windows 7實戰從入門到精通(超值版)
- 鴻蒙操作系統設計原理與架構