Skip to content

Instantly share code, notes, and snippets.

@mastermndio
Created March 4, 2021 00:18
Show Gist options
  • Save mastermndio/58c7b23c55ea05f523b31420efe1f910 to your computer and use it in GitHub Desktop.
Save mastermndio/58c7b23c55ea05f523b31420efe1f910 to your computer and use it in GitHub Desktop.
Linode server
#Define a provider
terraform {
required_providers {
linode = {
source = "linode/linode"
version = "1.14.3"
}
}
}
variable "linode_token" {}
variable "linode_password" {}
provider "linode" {
# Configuration options
token = var.linode_token
}
resource "linode_instance" "instance1" {
label = "ansible"
image = "linode/ubuntu20.04"
region = "us-east"
type = "g6-nanode-1"
root_pass = var.linode_password
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment