Un excelente curso para complementar los conocimientos de la ruta de backend con python.
Python + AWS = 🔥
Bienvenida
Bienvenida al curso de Serverless Framework
Presentación de proyecto
Conceptos Claves
Definiciones claves del ecosistema Serverless
Ventajas y desventajas de Serverless framework
Explicación de Serverless Framework
Serverless en local
Herramientas necesarias para un ambiente de trabajo con serverless framework
Instalación en macOS
Conociendo el serverless.yml: provider, functions, custom, plugins, etc
Ecosistema Serverless en AWS
Iniciar proyecto con Serverless Framework
Revisión de los recursos creados
Probar y debuggear en local y en la nube
Desarrollando con Serverless Framework
Recapitulación de la aplicación y método GET
DynamoDB en local
Despliegue y Testing de nuestro GET
Creación y despliegue de POST
UPDATE para actualizar datos
Hacemos un DELETE con python
Otros servicios AWS y presentación de casos de uso del segundo curso
Bonus
Creación de Budget en AWS
Indicaciones de GitHub Actions
CI/CD para nuestro proyecto
Refactor y alistamiento para Prod
Cierre del curso
Limpiemos nuestro workspace en AWS
Recapitulación y cierre de curso
Crea tus API’s con Serverless Framework y ChatGPT
Crea tus API’s con Serverless Framework y ChatGPT
Serverless Framework is a powerful development and deployment tool that revolutionizes the way we build applications in the cloud. By facilitating the elimination of traditional infrastructure management, it allows developers to focus on writing code and enhancing the functionality of their applications. When combined with Amazon Web Services (AWS), you get a scalable and efficient solution that streamlines the development process. Moreover, thanks to the elimination of fixed servers, you achieve a more effective and adaptive use of resources, which translates into lower costs and better use of the cloud environment.
AWS offers a complete set of services that complement the serverless paradigm. Here are some of the key pieces to configure your environment:
This ecosystem allows developers to innovate and scale their applications without worrying about maintaining the underlying servers. Furthermore, knowing and mastering these tools is essential for any Cloud Developer looking to excel in the world of cloud computing.
This course is designed to take your skills to the next level. Not only will you learn how to use the Serverless Framework to develop applications, but you will also discover how to automate and optimize your development processes. In addition, you will acquire practical knowledge that includes:
At the end of the course, you will be prepared to demonstrate a range of capabilities that not only encompasses the creation of serverless applications, but also their management and optimization. The skills acquired will enable you to offer complete solutions to complex problems in the cloud, elevating your career opportunities and differentiating you in the technology industry.
Therefore, this course is not just an introduction to Serverless, but a step towards becoming an AWS expert, ready to implement significant improvements in your projects. Dare to explore the future of cloud development and take your skills to new horizons!
Contributions 9
Questions 2
Un excelente curso para complementar los conocimientos de la ruta de backend con python.
Python + AWS = 🔥
en el trabajo me están dando palo por no saber Serverless
lo usamos con Python y Node.js
empezando el curso con la mejor actitud, expectativas altas!!
IMPORTANTE: usar archivo .env para el arn de la tabla.
En el provider el Resource debe ser de esta manera:
Resource: arn:aws:dynamodb:us-east-1:${env:ID_CUENTA}:table/usersTable
Así no expones tu id de usuario para que esto sea valido debes añadir al YML useDotenv: true para que lea el archivo .env con el ID.
Quedando así (al final del curso):
service: crud-serverless-users
useDotenv: true
provider:
name: aws
runtime: nodejs14.x
iam:
role:
statements:
- Effect: Allow
Action: "dynamodb:*"
Resource: arn:aws:dynamodb:us-east-1:${env:ID_CUENTA}:table/usersTable
plugins:
- serverless-offline
- serverless-dynamodb
custom:
dynamodb:
# If you only want to use DynamoDB Local in some stages, declare them here
stages:
- dev
start:
port: 8000
inMemory: true
migrate: true
# Uncomment only if you already have a DynamoDB running locally
# noStart: true
resources:
Resources:
usersTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: usersTable
AttributeDefinitions:
- AttributeName: pk
AttributeType: S
KeySchema:
- AttributeName: pk
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
package:
individually: true
patterns:
- "!*/**"
functions:
get-users:
handler: getUsers/handler.getUsers
package:
patterns:
- "getUsers/handler.js"
events:
- http:
path: users/{id}
method: GET
create-users:
handler: createUsers/handler.createUsers
package:
patterns:
- "createUsers/handler.js"
events:
- http:
path: users
method: POST
update-users:
handler: updateUsers/handler.updateUsers
package:
patterns:
- "updateUsers/handler.js"
events:
- http:
path: users/{id}
method: PATCH
delete-users:
handler: deleteUsers/handler.deleteUsers
package:
patterns:
- "deleteUsers/handler.py"
runtime: python3.8
events:
- http:
path: users/{id}
method: DELETE
Want to see more contributions, questions and answers from the community?