Skip to content

infraestructura como codigo, ejemplo de creacion de una instancia ec2 con nginx usando un modulo de terraform

Notifications You must be signed in to change notification settings

edcilo/terraform_aws-ec2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a new SSH key pair

ssh-keygen -t rsa -b 4096 -f "nginx-server.key"

Connect to an instance

ssh -i "nginx-server.key" ec2-user@<Public IP Address>

CLI Commands

Initialize the Terraform configuration directory.

Every time that you add a new module, you need to run the terraform init command.

terraform init

Format the Terraform configuration files.

terraform fmt

Create an execution plan.

terraform plan

terraform plan --var-file=qa.tfvars

Apply the changes required to reach the desired state of the configuration.

terraform apply

Show the outputs of the Terraform configuration.

terraform ouputs

Destroy the Terraform-managed infrastructure.

terraform destroy

About

infraestructura como codigo, ejemplo de creacion de una instancia ec2 con nginx usando un modulo de terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages