Skip to content

salehparsa/terraform-linode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy instance on Linode with Terraform

Pre-requisites

  • You must have Terraform installed on your computer.
  • You must have an Account in Linode

This templated tested with Terraform v0.11.14 and provider.linode v1.9.2.

Configure Linode

Technically, Terraform can read Linode Token from TF_VAR_token="Your TOKEN" .

You can configure it in variables file as well:

variable "linode_token" {
  description = "Linode API v4 Personal Access Token"
  default = "YOUR TOKEN"
}

Apart from that, you can even rename secret-example.tfvars to secret.tfvars and store your API Token there.

Terraform

Validate the templates:

terraform plan

Deploy the code:

terraform apply

If you are using secret.tfvars you need to use -var-file="secret.tfvars" flags for your plan or apply.

Output

Output contains Information about instance status and Public IP Address and Specs.

About

Terraform to Provision Linode Environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages