Build your own server with infrastructure as code
- Linode Server using Terraform
- 📝 Table of Contents
- 🧐 About
- 🏁 Getting Started
- 🎈 Usage
- ✍️ Authors
- Reference
- Streaming
This project allows you to create your own instance on Linode.com using terraform as infrastructure as code tool.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to install the following packages and binaries on your machine. And Linode account as well
Linode account
Terraform v1.0.5
tfenv
You will need add some environment variables to your system, such as Linode Token and SSH Keys
export TF_VAR_LINODE_TOKEN=<linode-token-value>
export TF_VAR_SSH_KEY=<linode-token-value>
export TF_VAR_ROOT_PASSWORD=<linode-token-value>
You should see your environment variables running env command.
To get this code run the following command
git clone https://github.com/mherrera05/streaming-iac-linode.git <folder-name>
Inside the folder, run the command
> terraform init
This will download all dependencies.
To create, modifiy and destroy your infra you just need to run the following command
> terraform plan
To show the plan and the resources that need to be added.
> terraform apply
Terraform apply will run the instructions to create resources.
> terraform destroy
Terraform destroy will remove the created resources.
- migueljherrera - Full Stack Developer
Crear maquina virtual en Linode usando Terraform (Streamed on Twitch)