From the course: Serverless Cloud Computing: Concepts, Platforms, and Services

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Step 4: Testing and deployment

Step 4: Testing and deployment

- [Narrator] Testing and deployment for serverless means getting real about testing and deploying serverless applications. It's different from traditional approaches and requires some specific thinking. Here's what you need to know. Start with comprehensive local testing using tools like SAM, local or serverless framework, offline plugins. You'll want to test each function individually. Then move to integration testing where functions work together. Don't forget to test your event triggers and service integration. They're often where things go wrong. For deployment, embrace infrastructure as code. It's not optional anymore. Use tools like AWS SAM, Terraform or the serverless framework to define your entire stack. Set up a solid CI/CD pipeline that includes security scanning and performance testing. You'll want separate environments for development, staging, and production. Key testing areas include function execution and error handling, integration points and API behaviors…

Contents