---
# System prepended metadata

title: CDK (Cloud Development Kit) Workshop

---

# CDK (Cloud Development Kit) Workshop 

Objetivo : De 0 a IaC en una mañana.

## 1. Acceder a la Consola de AWS - Laboratorio (~5 min)

https://dashboard.eventengine.run/login
Hash: <pregunte a su lab instructor>

Seleccionar OTP o amazon account.

Console Login

## 2. Crear Ambiente IDE de desarrollo (~10 min)

[Crear Ambiente Cloud9 Para desarrollar
](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateUrl=https%3A%2F%2Fcloudformation-templates-625806755153-us-east-1.s3.amazonaws.com%2FCloud9.yml&stackName=Cloud9Environment&param_AvailabilityZones%5B%5D=us-east-1a&param_AvailabilityZones%5B%5D=us-east-1b&param_AvailabilityZones%5B%5D=us-east-1c&param_C9InstanceType=t3.large&param_C9StopTime=240&param_EBSVolumeSize=100&param_EnableBastionStack=false&param_NumberOfAZs=2&param_OwnerArn=&param_PrivateSubnet1CIDR=10.0.0.0%2F19&param_PrivateSubnet2CIDR=10.0.32.0%2F19&param_PublicSubnet1CIDR=10.0.128.0%2F20&param_PublicSubnet2CIDR=10.0.144.0%2F20&param_QSS3BucketName=aws-quickstart&param_QSS3BucketRegion=us-east-1&param_QSS3KeyPrefix=quickstart-cloud9-ide%2F&param_RemoteAccessCIDR=Auto)



## 3. Cross-Check (en Cloud9) (~5 min)

Abrir la instancia de Cloud 9 https://console.aws.amazon.com/cloud9/home y "Open IDE"


Abrir una ventana de terminal "New Terminal"


1. [Actualizar AWS Cli](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-install) 

    ```bash
    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    unzip awscliv2.zip
    sudo ./aws/install
    ```

2. Version de node > 10 (se recomienda ultima version)

    ```bash
    node --version
    ```  
3. Instalar CDK (agregar --force si da error)
    
    ```bash
    npm install -g aws-cdk 
    ```


## 4. CDK Project (Resto de la sesión )

Partimos desde acá 
https://cdkworkshop.com/30-python/20-create-project/100-cdk-init.html
    
y finalizamos acá:
https://cdkworkshop.com/30-python/40-hit-counter/700-test.html
    
De manera opcional el resto del día:
https://cdkworkshop.com/30-python/70-advanced-topics.html

## 5. Recursos Adicionales

* [CDK Samples Github Repo](https://github.com/aws-samples/aws-cdk-examples)
* [CDK Patterns](https://cdkpatterns.com/patterns/)
* [CDK Construcs Library](https://constructs.dev)
* [CDK Documentación](https://docs.aws.amazon.com/cdk/api/latest/python/)
* [Para el fin de semana](https://awsstash.com/?search=%22cdk%22)
* [CDKtf](https://learn.hashicorp.com/tutorials/terraform/cdktf)
* [CDK8s](https://cdk8s.io/)

