Como aporte, hay varios frameworks que nos permiten modelar los recursos en .yaml, .ts (typescript) entre otros que integrandolos con GitOps los CI de infraestructura se vuelve muy rápido 😃, ejemplos:
- Serverless Framework
- Pulumi
- Terraform
Introducción
¿Ya tomaste el Curso de Almacenamiento, Cómputo y Bases de Datos?
Redes
Qué son las redes
Qué es una VPC
Escogiendo CloudFront
Qué es Route 53
Crear componentes básicos de una VPC
Cómo crear el diagrama de una VPC
Cómo crear la VPC y el internet gateway
Cómo crear la tabla de enrutamiento y otros componentes
Gobernanza
Administración y gobernanza con AWS
Qué es CloudFormation y cuáles son sus beneficios
Qué es Cloudwatch
Cómo aplicar autoescalamiento
Laboratorio: empezando con CloudFormation
Laboratorio: actualizando y eliminando la stack
Machine Learning
Empezando con Machine Learning
Qué es AWS Rekognition
Amazon Polly
Amazon Transcribe
Próximos pasos
¿Quieres cursos prácticos para certificarte en AWS?
You don't have access to this class
Keep learning! Join and start boosting your career
CloudFormation allows us to provision infrastructure as code. To test CloudFormation, using a template we will create a stack from which an S3 bucket will be deployed. Then, we will update the stack by adding another S3 bucket, and finally we will delete it.
In this repository you will find the CloudFormation template that we will use. The template has the following JSON structure (remember, CloudFormation accepts JSON or YAML format):
{ " AWSTemplateFormatVersion": "2010-09-09", " Description": "this template does XXXX", " Metadata": {}, " Parameters": {}, " Mappings": {}, " Conditions": {}, " Transform": {}, " Resources": {}, " Outputs": {} }
These parameters correspond to the following:
{ " Resources": { " platzilab": { " Type": "AWS::S3::Bucket"} } } }
4. We click next and then choose a name for the stack. In this case, we call it cfnlab, and click next.
5. Optionally, we can add labels to identify the stack, and an IAM role.
6. We leave the rest of the configurations by default and click next. Then it will take us to review the configurations, and we click on "Create stack".
7. We will be able to see the stack creation process, the events and the resources that were created. If you look at the name of the created bucket, you will see that it is composed by the name of the stack, the name we assigned to the bucket in the template, and a random text string. This is to avoid creating duplicate named resources.
Contribution created with contributions from: Ciro Villafraz.
Contributions 14
Questions 2
Como aporte, hay varios frameworks que nos permiten modelar los recursos en .yaml, .ts (typescript) entre otros que integrandolos con GitOps los CI de infraestructura se vuelve muy rápido 😃, ejemplos:
.
Esto es lo que vamos a realizar en este laboratorio
.
.
.
En el buscador escribimos CloudFormation
.
Damos click en create stack
.
En Choose File cargamos el JSON que se encarga de crear el stack. Los archivos los dejó el profe en el repositorio: https://github.com/platzi/aws-cloud-practitioner/tree/main/lab-cloudformation
.
Damos el nombre del stack
.
Configuramos los tags y dejamos el resto igual
APORTE IMPORTANTE!
Para que puedan seguir el flujo de la clase por favor primero elijan la Region
Se podría emplear codebuild y cloud formation para automatizar por completo el despliegue. Una rama de la infraestructura en prueba y la otra en producción, que cambie menos.
Yo tengo que aprender esto, pero sinceramente soy mas de Terraform, es una alternativa excelente, aunque no sé si se equipara con Cloud Formation en sus capacidades.
Me puse a revisar y en donde trabajo utilizan yaml para crear el template de cloudformation
Otros frameworks de mas alto nivel, son AWS CDK y AWS SAM
Recordatorio para que siempre revises en que region crear tus recursos
Información resumida de esta clase
#EstudiantesDePlatzi
CloudFormation nos permite construir toda la infraestructura como código en formato Json
Es buena idea tomar el curso de infraestructura como código para entender bien como crear y estructurar el archivo Json
Podemos utilizar Json o Yaml
El Bucket y Stack de Cloudformation deben estar creados en la misma región
Los Stacks pueden tener etiquetas para que sean fácilmente identificables
Dentro de S3 los Buckets deben tener único nombre
Want to see more contributions, questions and answers from the community?