Fundamentos de Deployment y Control de Versiones

1

¿Cómo Desplegar Aplicaciones Python?

2

Introducción a WSGI y ASGI para aplicaciones Python

3

Control de versiones en Git y prácticas de versionamiento en Python

4

Configuración de entornos de desarrollo para despliegue

5

Buenas prácticas en el uso de variables de entorno

Configuración de Servidores en la Nube para Despliegue

6

Fundamentos de servidores y conexión por SSH

7

Creación y configuración de instancias en AWS, Linode y DigitalOcean

8

Creación de instancias en AWS

9

Configuración de SSH

10

Instalación y gestión de paquetes en el servidor

11

Configuración de DNS para dominios en despliegue

12

Certificados SSL con Let’s Encrypt para seguridad en producción

Administración y Optimización de Servidores para Producción

13

Configuración de servidores web y aplicaciones con WSGI y ASGI

14

¿Cómo configurar UWSGI con Python y NginX en producción?

15

Configuración de Proxy Reverso en Nginx para Aplicaciones WSGI

16

Manejo de errores y configuración de logs en producción

17

Monitoreo de aplicaciones Python en producción usando Sentry

18

¿Cómo configurar un archivo .env en Django para producción?

Integración de Servicios Complementarios para Aplicaciones Python

19

Configuración de Bases de Datos PostgreSQL en el Servidor de la Aplicación

20

Configuración de Bases de Datos en Producción con Amazon RDS

21

Servicios para archivos estáticos (S3, Cloudflare)

Automatización y CI/CD para Despliegues Python

22

Automatización de despliegue con Ansible

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:

2 Días
5 Hrs
15 Min
12 Seg

Creación de instancias en AWS

8/22
Resources

How to create an instance on AWS?

Configure your cloud environment correctly and maximize the use of available resources at your disposal. Creating an instance on AWS is the first step towards managing servers in the cloud. This process will allow you to deploy applications and manage services, taking advantage of the advanced features of Amazon Web Services. Here's how to do it easily and effectively, from initial access to final configuration.

What is the Easy2 dashboard?

Easy2 is a user interface that makes it easy to create and manage AWS cloud instances. Its dashboard is mainly divided into two sections:

  • Sidebar: Includes options for creating and viewing resources such as instances, instance types, AMIs, volumes, and IP addresses.
  • Main content: Displays a summary of the number of instances you have running, the IPs created and assigned, as well as the "Launch Instance" button to start the process of creating an instance.

How to choose the name and operating system for your instance?

  1. Assign a name: Once you start the process, assign a name that easily identifies your instance. In this case, the recommended name is "Python Server".

  2. Select the operating system: Select Ubuntu as the operating system, version 24, since it is compatible with the commands that will be used.

  3. Check the details: Be sure to check important details such as the username, which will be required to connect to the server.

How to choose the instance type and create a key?

  • Instance type: Select an instance type that suits the needs of your application. For example, use the P2 Micro, which offers one CPU and one gigabyte of memory.
  • Create a new key: Create a key pair, using the PEM format for Linux systems and the PPK format if you are on Windows. Name it, for example, "Python server key".
# Create new keycreate new key pair: "Python server key", format: PEM or PPK

What is the importance of the network configuration?

The network configuration is crucial to define how your instance will connect to the Internet and how other services will be able to interact with it:

  • Allow IP connections: initially, allow access from any IP for ease of development. However, it is preferable to limit access.
  • HTTPS/HTTP configuration: Enable HTTP traffic initially, and once the security certificate is ready, enable HTTPS traffic.

Storage configuration?

The choice of storage ensures adequate performance according to the project:

  • Hard disk type: opt for a GP3 type SSD for its improved speed.
  • Storage size: Select a size of at least 20 GB to ensure sufficient space.

How to secure a static IP with Elastic IPs?

Using Elastic IPs allows your server to keep the same IP, even after reboots:

  • Create and associate an Elastic IP: Associate the Elastic IP to your instance to maintain connection consistency.
# Assign an Elastic IPactions: associate, select instance, and check the option not to delete it if the instance is running.

How to review the security settings?

Check the security settings to define which ports are accessible:

  • Inbound rules: configure access on ports 22 (SSH), 80 (HTTP), and 443 (HTTPS).
  • Outbound rules: Make sure that outbound connections have sufficient accessibility.

How to connect to your instance?

Facilitate access by correctly configuring credentials and establishing an SSH connection. You can execute commands and perform necessary configurations from the terminal.

# Command to view connectivityping google.com

How to accept the challenge?

Test your skills by creating a new instance and configuring an Nginx server as a personal challenge. Use the acquired knowledge to make it work efficiently.

# Install Nginxsudo apt updatesudo apt install nginx

With these instructions, you will be ready to create and manage an instance on AWS, thus maximizing the potential of your cloud projects. Keep on exploring and encouraging yourself to take on new technological challenges!

Contributions 1

Questions 0

Sort by:

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

<https://aws.amazon.com/es/getting-started/hands-on/deploy-wordpress-with-amazon-rds/3/> Para crear una nueva instancia en AWS se deben realizar los siguientes pasos: 1\. Marcar en Lanzar instancia 2\. Se agrega el nombre de la instancia 3\. Se selecciona el sistema operativo (normalmente Ubuntu) a. Se escoge la versión (en esta momento 24.04 LTS) b. Se escoge la arquitectura 64-bit (x86) c. Se debe verificar el usuario de inicio (ubuntu) 4\. Se selecciona el tipo de instancia (T2.micro) 5\. Crear el par de llaves de login a. Se selecciona à Crear un nuevo par b. Se nombre el par de llaves c. Se escoge el tipo (RSA) d. El formato del archivo de las llaves (pem \[Ubuntu] – ppk \[Windows]) e. Seleccionar à Crear par de llaves f. La llave se descarga a la computadora 6\. Se realiza la configuración de red: a. Se debe definir el tráfico saliente del y entrante al servidor b. Se activa à Permitir el tráfico SSH desde à Cualquier IP (Anywhere) c. Se activa à Permitir el tráfico HTTPS desde internet d. Se activa à Permitir el tráfico HTTP desde internet (para iniciar pero es recomendable dejarlo inactivo) 7\. Se configura el almacenamiento: a. Se determina el tamaño en GB (>20) y el tipo (gp3) 8\. Se marca à Lanzar aplicación a. Revisar toda la configuración en la columna derecha del sitio 9\. Para verificar la instancia se debe marcar y luego seleccionar la flecha de abajo a la derecha del sitio. a. Despliega la información general de la instancia en ejecución b. Revisar à Detalles (Details): i. ID de la instancia ii. IP pública IPv4 (dinámica – se modifica cada vez que se reinicia el servidor) iii. IP privada IPv4 iv. Para modificar la IP pública y dejarla fija se utiliza à Elastic IPs 1\. Se marca Asignar dirección de IP elástica (Allocate Elastic IP Address) 2\. Se indica la región de AWS en la que necesitamos la IP 3\. Se marca Asignar (Allocate) 4\. Una vez creada se selecciona y luego en Acciones (Acctions) se escoge Asociar dirección de IP elástica (Associate Elastic IP address) 5\. Se abre un nuevo formulario a. Decidir el tipo de recurso (Resource type) al que se desea asociar (Intance) b. Escoge la instancia a la que se asocia c. Se marca Asociar (Associate) v. Se verifican el resto de características de la instancia c. Revisar à Estados y Alarmas (Status and alarms) d. Revisar à Monitoreo (Monitoring) e. Revisar à Seguridad (Securirty) i. Verificar las reglas de entrada al y salidas desde el servidor f. Revisar à Red (Networking) g. Revisar à Almacenamiento (Storage) h. Revisar à Etiquetas (Tags) 10\. Para conectar con las instancia debemos marcar en el botón à Conectar (Connect) arriba al centro del sitio a. Aparece la advertencia de que SSH está accesible desde cualquier IP de Internet (Esto se debe modificar para indicar IPs exclusivas para acceder a SSH) b. Se marca conectar abajo a la derecha del sitio c. Se abre una nueva pestaña con una terminal del servidor Ubuntu de la instancia