Skip to content

JamesWoolfenden/terraform-linode-instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-linode-instance

Build Status Latest Release pre-commit checkov

Usage

Requires your Personal Access Token as an Environmental Variable.

Module automatically generate your instance root password amd SSH key.

export LINODE_TOKEN="xxxxx"

Include this repository as a module in your existing Terraform code:

module "instance" {
  source      = "github.com/JamesWoolfenden/terraform-linode-instance"
  version.    = "0.0.1"
}

Requirements

Name Version
terraform >=0.14.8
linode >=1.25.0
local 2.0.0
random 3.0.0
tls 3.0.0

Providers

Name Version
linode 1.13.4
local 2.0.0
random 3.0.0
tls 3.0.0

Modules

No modules.

Resources

Name Type
linode_instance.example resource
local_file.private_ssh resource
local_file.public_ssh resource
random_password.password resource
random_string.rando resource
tls_private_key.ssh resource

Inputs

Name Description Type Default Required
image Linode Image type to use string "linode/ubuntu18.04" no
region The Linode region to use string "eu-west" no
type The image size type to use string "g6-standard-1" no

Outputs

Name Description
instance_id n/a
password n/a
ssh n/a

Tests

This module is to serve as sample data for Checkov SAST rules.

Contributors

James Woolfenden
James Woolfenden