Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oleonardorodrigues/hashitalks-brasil-2021

Exemplo para HashiTalks Brasil 2021, sobre features avançadas em Terraform.
https://github.com/oleonardorodrigues/hashitalks-brasil-2021

example hashicorp hashitalks terraform

Last synced: 11 days ago
JSON representation

Exemplo para HashiTalks Brasil 2021, sobre features avançadas em Terraform.

Awesome Lists containing this project

README

        

![HashiTalks 2021 Speaker Card](/images/speaker\_card.png "HashiTalks 2021 Speaker Card")

# HashiTalks Brasil 2021

## Terraform Avançado: Usando Objetos

### [Apresentação](https://www.youtube.com/watch?v=jQszqzCEhFk&list=PL81sUbsFNc5agdrEMDtU6IGyxBMv6Fq8i&index=19)

### [Slides](https://docs.google.com/presentation/d/1fK_fJb5fe49kckoVqr_CS6uWMS51blH_Jq_5k2exScQ/edit?usp=sharing)


## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | = 1.0.11 |
| [aws](#requirement\_aws) | 3.67.0 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 3.67.0 |

## Resources

| Name | Type |
|------|------|
| [aws_subnet.main_subnet](https://registry.terraform.io/providers/hashicorp/aws/3.67.0/docs/resources/subnet) | resource |
| [aws_subnet.main_subnets](https://registry.terraform.io/providers/hashicorp/aws/3.67.0/docs/resources/subnet) | resource |

## Inputs

| Name | Description | Type | Default |
|------|-------------|------|---------|
| [subnet](#input\_subnet) | Objeto que declara uma única subnet. |

object({
name = string
vpc_id = string
cidr_block = string
shared = optional(bool)
})
|
{
"cidr_block": "10.0.1.0/24",
"name": "Main",
"shared": true,
"vpc_id": "0123456789012"
}
|
| [subnets](#input\_subnets) | Mapa de objetos que declaram várias subnets. |
map(
object({
vpc_id = string
cidr_block = string
shared = bool
})
)
|
{
"subnet1": {
"cidr_block": "10.0.1.0/24",
"shared": true,
"vpc_id": "012345678901"
},
"subnet2": {
"cidr_block": "10.0.2.0/24",
"shared": false,
"vpc_id": "012345678901"
}
}
|

## Outputs

| Name | Description |
|------|-------------|
| [subnet](#output\_subnet) | Conteúdo da variável subnet. |
| [subnets](#output\_subnets) | Conteúdo da variável subnets. |