Skip to Content
Infraestructura como código, 2ª edición
book

Infraestructura como código, 2ª edición

by Kief Morris
September 2024
Intermediate to advanced
430 pages
12h 33m
Spanish
O'Reilly Media, Inc.
Content preview from Infraestructura como código, 2ª edición

Capítulo 7. Configurar instancias de pila

Este trabajo se ha traducido utilizando IA. Agradecemos tus opiniones y comentarios: translation-feedback@oreilly.com

Utilizar un único proyecto de código de pila facilita el mantenimiento de múltiples instancias coherentes de infraestructura, como se describe en "Patrón: Pila Reutilizable". Sin embargo, a menudo necesitas personalizar distintas instancias de una pila. Por ejemplo, puedes dimensionar un clúster con menos servidores en un entorno de desarrollo que en producción.

Aquí tienes un ejemplo de código de pila que define un clúster de alojamiento de contenedores con un número mínimo y máximo de servidores configurables:

container_cluster: web_cluster-${environment}
  min_size: ${cluster_minimum}
  max_size: ${cluster_maximum}

A este código le pasas diferentes valores de parámetros para cada entorno, como se muestra en la Figura 7-1.

Las herramientas de pila como Terraform y CloudFormation admiten múltiples formas de establecer los valores de los parámetros de configuración. Éstas suelen incluir la transmisión de valores en la línea de comandos, su lectura desde un archivo y la recuperación por parte del código de la infraestructura desde un almacén de valores clave.

Los equipos que gestionan la infraestructura tienen que decidir cómo utilizar estas funciones para gestionar y pasar valores de configuración a su herramienta de apilamiento. Es esencial asegurarse de que los valores se definen y aplican de forma coherente a cada entorno. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

La Política como Código

La Política como Código

Jimmy Ray
Programabilidad y Automatización de Redes, 2ª Edición

Programabilidad y Automatización de Redes, 2ª Edición

Matt Oswalt, Christian Adell, Scott S. Lowe, Jason Edelman
Aprendizaje automático y seguridad

Aprendizaje automático y seguridad

Clarence Chio, David Freeman
Patrones de arquitectura de aplicaciones en la nube

Patrones de arquitectura de aplicaciones en la nube

Kyle Brown, Bobby Woolf, Joseph Yoder

Publisher Resources

ISBN: 9781098198251