Skip to content

TobiasAndre/terraform-aws-infra

Repository files navigation

DevOps: AWS com Terraform Automatizando sua infraestrutura

Requisitos:

AWS

Terraform

Opcional:

AWS CLI

Comandos básicos:

terraform init (Prepare your working directory for other commands)

terraform validate (Check whether the configuration is valid)

terraform plan (Show changes required by the current configuration)

terraform apply (Create or update infrastructure)

terraform destroy (Destroy previously-created infrastructure)

OBS: O Comando terraform init deve ser executado ao se executar este projeto a primeira vez e

a cada recurso novo adicionado, para que as dependências sejam baixadas.

Preview de infra para dev:

terraform plan

Preview de infra para prod:

terraform plan -var-file="prod.tfvars"

Criar a infraestrutura na AWS (para dev, basta não passar o var file como parâmetro):

terraform apply -var-file="prod.tfvars" -auto-approve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages