Importancia de la Infraestructura como código

1

Paso a paso para infraestructura cómo código

2

Cómo desplegar infraestructura en Cloud

3

Herramientas para desplegar infraestructura como código

4

Introducción y ventajas de usar Cloudformation

5

Laboratorio # 1: explorando la consola de Cloudformation

Funcionalidades y características en Cloudformation

6

Anatomía de un template en Cloudformation

7

Clase práctica creación de un template

8

Despliegue del template en Cloudformation

9

Caracteristícas finales del template en Cloudformation

10

Stacks: características y despliegue

11

Bonus: ejemplo de stack

12

Stack Sets: despliegues multicuenta

13

Laboratorio # 2: desplegando un Stack Set en un esquema multi-cuenta

14

Nested Stacks: composición y ejemplos

15

Laboratorio # 3: creación de recursos del Stack

16

Laboratorio #3: pruebas de funcionamiento del stack

17

Laboratorio # 4: crear nuestro primer Nested Stack

18

Laboratorio #4: pruebas de funcionamiento del Nested Stack

19

Laboratorio # 5: cómo crear un stack de forma gráfica con Designer

Funciones en Cloudformation

20

Funciones intrínsecas: GetAtt, FindInMap, Join, Split y Select

21

Funciones intrínsecas: Sub, Ref y ImportValue.

22

Funciones condicionales: If, Not, And y Equals

Automatización y despliegues de infraestructura como código

23

Importancia de la automatización de infraestructura

24

Cómo automatizar despliegues de infraestructura

25

Creación de pipelines para despliegue de infraestructura

26

Laboratorio #6: Estructura de repositorio para despliegue de función lambda

27

Laboratorio #6: prerequisitos para creación del pipeline

28

Laboratorio #6: despliegue de pre requisitos

29

Laboratorio #6: creación del pipeline para el despliegue de una función lambda

30

Laboratorio #6: verificación de recursos creados en el pipeline

Diagnostico de errores y seguridad en infraestructura como código.

31

Seguridad en templates

32

Troubleshooting

33

Seguridad en despliegues

34

Laboratorio # 7: identificación de errores en despliegues

Funciones lambda en Cloudformation

35

Cómo desplegar lambda como función

36

Cómo desplegar lambda como función serverless

37

Laboratorio # 8: puesta en producción de nuestra función lambda

Conclusiones

38

Conclusiones finales

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

1 Días
20 Hrs
48 Min
51 Seg
Curso de Infraestructura Como Código en AWS

Curso de Infraestructura Como Código en AWS

Carlos Andrés Zambrano Barrera

Carlos Andrés Zambrano Barrera

Laboratorio # 3: creación de recursos del Stack

15/38
Resources

How to deploy resources on AWS with a Stack?

Leveraging the capabilities of Amazon Web Services to deploy applications and resources is essential for any developer. In this lab, focusing on deploying Votan Help, you will learn how to use a Stack to create and configure resources such as API Gateway, Lambda and DynamoDB efficiently. The structure and coordination of these elements is crucial for a successful project, and here we show you how to achieve it.

How to clone the code repository?

To begin with, it is important to have the correct source code. Go to your code repository and clone it by following these steps:

  1. Copy the repository URL.
  2. Open your terminal and use the command git clone followed by the copied URL.
  3. Verify that the clone was successful by checking the folder structure of the repository on your local system.

How to prepare the AWS S3 environment for the project?

Amazon S3 is an essential object storage service where the code and files needed for Lambda are stored. Here's how to set it up:

  1. Access the Amazon S3 console and create a bucket if you don't already have one. You just need to specify the name.
  2. Once the bucket is created, upload the compressed code of the Lambda function in .zip or .pkg format. This file will be key to deploy the Lambda function.

How to upload and configure the Stack in AWS CloudFormation?

CloudFormation is used to deploy and manage multiple resources on AWS with a single template. Here's how to do it:

  1. Copy the full URL of the master template file from the code repository in S3.
  2. Access the AWS CloudFormation console and select "Create Stack".
  3. Provide the copied URL as the source of your template.
  4. Fill in the required fields, such as the Stack name (e.g. VotaNextMaster) and project-specific details such as DynamoDB table name, primary key, Lambda function name and S3 bucket where the code is stored.

What aspects are vital when creating a Stack?

During the Stack creation process, there are several important aspects to consider to avoid errors. These include:

  • Make sure you select the necessary IaaM permissions, especially when creating roles and policies.
  • Review each step before proceeding to ensure that the settings and configurations are correct.
  • Monitor the deployment process, verifying that each resource is successfully created through the CloudFormation status.

How to verify that the resources have been created correctly?

After Stack creation, it is essential to ensure that each resource is working correctly:

  • Lambda: Confirm that the Lambda function is deployed and configured to run with the appropriate runtime (e.g., Python 3.7). Verify policies and permissions.

  • DynamoDB: Check that the DynamoDB table exists and has the correct keys configured. It is important to have the main things, such as citizenship card, ready for queries.

  • API Gateway: Verify the creation of the endpoints in API Gateway, making sure they are correctly integrated with the Lambda function.

This detailed approach gives you the clarity and security you need to deploy projects on AWS, enabling you to take your applications to the next level with confidence. Learn more about each component and keep practicing to master this indispensable tool in cloud development - go ahead, keep learning and empower your projects!

Contributions 6

Questions 4

Sort by:

Want to see more contributions, questions and answers from the community?

Personalmente, siento que falta una mejor explicación de la infraestructura cómo código, el uso de plantillas ya creadas como ejemplo en todos los despliegues en cloudformation no ayuda mucho al propósito del curso que es enseñar infraestructura como código en aws, de lo que va del curso solo se ha desarrollado una sola plantilla

Cuál es el BestPractice para mantener el versionamiento de las plantillas que uno elabore para CloudFormation?. Github o AWS tiene algún repositorio de control de código?

Es recomendable tener en un mismo repositorio el código fuente de mi aplicación y el código de la infraestructura ? o mejor tener repos independientes para cada uno?

veamos… 😃

😃