0% found this document useful (0 votes)
12 views17 pages

5 CloudFormation

Uploaded by

alejo.limp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views17 pages

5 CloudFormation

Uploaded by

alejo.limp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

The Best Experience in Technology

CLoudFormation de AWS

Curso U Sabana

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| C I / C D AW S

Primeros pasos
Conocimiento deseable

Artefactos y despliegues
- Archivos yaml.
- Servicios de AWS
- S3
- Configuraciones S3

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

¿Qué es CloudFormation?

Ø Es la forma de crear infraestrucura mediante templaters, esto facilita el trabajod e creación, evita errores,
es más rapido, se compone de stacks, stacksets, templates y change sets.

El stack es algo asi como la representacion de la creacion del template

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

Ø CloudFormation

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

AWS CloudFormation example

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

Ø CloudFormation Outputs

- The optional Outputs section declares output values that


you can import into other stacks (to create cross-stack
references), return in response (to describe stack calls), or
view on the AWS CloudFormation console. For example,
you can output the S3 bucket name for a stack to make the
bucket easier to find.

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

Intrinsic Functions

The intrinsic function Ref returns the value of the specified parameter or resource.
Ø When you specify a parameter’s logical name, it returns the value of the parameter.
Ø When you specify a resource’s logical name, it returns a value that you can typically use to refer to that resource, such as a
physical ID.
Ø The following resource declaration for an Elastic IP address needs the instance ID of an EC2 instance and uses the Ref function
to specify the instance ID of the MyEC2Instance resource:

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

Intrinsic functions GetAtt

Ø The Fn::GetAtt intrinsic function returns the value of an


attribute from a resource in the template.

Ø Full syntax (YAML): Fn::GetAtt: [ logicalNameOfResource,


attributeName ]

Ø Short form (YAML): !GetAtt


logicalNameOfResource.attributeName

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

I Intrinsic Functions FindInMap

Ø Returns the value corresponding to keys in a two-level


map that is declared in the Mappings section.

Ø Full syntax (YAML): Fn::FindInMap: [ MapName,


TopLevelKey, SecondLevelKey ]

Ø Short form (YAML): !FindInMap [ MapName,


TopLevelKey, SecondLevelKey ]

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

I Intrinsic Parameters

Ø Use the optional Parameters section to customize your


templates.

Ø Parameters enable you to input custom values to your


template each time you create or update a stack.

Ø Useful for template reuse.

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

I Intrinsic Conditions

Ø Ø Conditions – the optional Conditions section contains


statements that define the circumstances under which
entities are created or configured.

Ø In the sample YAML code below, resources are created


only if the EnvType parameter is equal to prod:

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

I Intrinsic Conditions

Ø Ø Conditions – the optional Conditions section contains


statements that define the circumstances under which
entities are created or configured.

Ø In the sample YAML code below, resources are created


only if the EnvType parameter is equal to prod:

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

I Intrinsic Transform

Ø The AWS::Serverless transform specifies the version of


the AWS Serverless Application Model (AWS SAM) to use.
This model defines the AWS SAM syntax that you can use
and how AWS CloudFormation processes it.

Ø The AWS::Include transform works with template


snippets that are stored separately from the main AWS
CloudFormation template.

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

I Nested Stacks

Ø Nested stacks allow re-use of CloudFormation code for


common use cases.
Ø For example standard configuration for a load balancer,
web server, application server etc.
Ø Instead of copying out the code each time, create a
standard template for each common use case and
reference from within your CloudFormation template..

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


| CI/CD

DEMO
CloudFormation S3 template

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


|CodePipeline

BEXTECHNOLOGY S.A.S. | Todos los derechos reservados


Gracias.

Bogotá, D.C. (CO)


Calle 56 No. 7-85, Oficina 302 | [email protected]

Ciudad de Panamá (PA)


Av. Brasil, Calle Acueducto, PH Brazil 405, Ofic. 15B
+507 392 4015 / +507 627 91588 | [email protected]

Quebec (CA)
+1 4185588048 | [email protected] | www.bext.ca/fr

www.bextsa.com

You might also like