Skip to content

Commit 6ea00e5

Browse files
committed
readme updates
1 parent 8d2ac9a commit 6ea00e5

File tree

2 files changed

+39
-4
lines changed

2 files changed

+39
-4
lines changed

05-iac/00-terraform/01-setup/readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,41 @@ Para editar el `PATH`, seguiremos los siguientes pasos:
3333
3. Pulsar `edit` y modificarlo de forma adecuada
3434
4. Asegurar que hemos incluido `;` --> `c:\path;c:\path2`
3535

36+
## Visual Studio Code Devconatiners
37+
38+
Crear en el raíz del proyecto el directorio `.devcontainer`, dentro de este directorio añadimos el fichero `devcontainer.json`
39+
40+
```json
41+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
42+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
43+
{
44+
"name": "Ubuntu",
45+
"image": "mcr.microsoft.com/devcontainers/base:jammy",
46+
"features": {
47+
"ghcr.io/devcontainers/features/aws-cli:1": {},
48+
"ghcr.io/devcontainers/features/terraform:1": {}
49+
}
50+
51+
// Features to add to the dev container. More info: https://containers.dev/features.
52+
// "features": {},
53+
54+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
55+
// "forwardPorts": [],
56+
57+
// Use 'postCreateCommand' to run commands after the container is created.
58+
// "postCreateCommand": "uname -a",
59+
60+
// Configure tool-specific properties.
61+
// "customizations": {},
62+
63+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
64+
// "remoteUser": "root"
65+
}
66+
67+
```
68+
69+
Ahora sólo tenemos que reabrir el directorio utilizando la opción de `Devcontainers` y tendremos el entorno preparado para trabajar con `Terraform` y `AWS`
70+
3671
## Referencias
3772

3873
[Terraform Downloads](https://www.terraform.io/downloads)

05-iac/00-terraform/04-usando-inputs-outputs/02-demo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ terraform apply "d1.tfplan"
1616

1717
Crear `./lab/lc_web_app/variables.tf`.
1818

19-
```tf
19+
```ini
2020
# variables.tf
2121
variable "aws_access_key" {
2222
type = string
@@ -90,7 +90,7 @@ provider "aws" {
9090

9191
Vamos a crear nuevas entradas en `variables.tf` para los recursos de Networking.
9292

93-
```tf
93+
```ini
9494
# ....
9595
# NETWORKING
9696
variable "vpc_cidr_block" {
@@ -183,7 +183,7 @@ resource "aws_route_table" "rtb" {
183183

184184
Creamos nuevas entradas en `variables.tf` par los recusos de los SG
185185

186-
```tf
186+
```ini
187187
# ....
188188

189189
# SECURITY GROUPS
@@ -200,7 +200,7 @@ variable "sg_ingress_port" {
200200
}
201201

202202
variable "sg_egress_cidr_blocks" {
203-
type map = list(string)
203+
type = list(string)
204204
description = "cidr blocks allow for egress"
205205
default = ["0.0.0.0/0"]
206206
}

0 commit comments

Comments
 (0)