diff --git a/.gitignore b/.gitignore index 442b986..eb0789c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .terraform +terraform.tfstate* terraform.tfvars domain_records.tf diff --git a/lotus-land-story/.terraform.lock.hcl b/lotus-land-story/.terraform.lock.hcl new file mode 100644 index 0000000..0ddf206 --- /dev/null +++ b/lotus-land-story/.terraform.lock.hcl @@ -0,0 +1,44 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/http" { + version = "3.2.1" + constraints = "3.2.1" + hashes = [ + "h1:Q2YQZzEhHQVlkQCQVpMzFVs0Gg+eXzISbOwaOYqpflc=", + "zh:088b3b3128034485e11dff8da16e857d316fbefeaaf5bef24cceda34c6980641", + "zh:09ed1f2462ea4590b112e048c4af556f0b6eafc7cf2c75bb2ac21cd87ca59377", + "zh:39c6b0b4d3f0f65e783c467d3f634e2394820b8aef907fcc24493f21dcf73ca3", + "zh:47aab45327daecd33158a36c1a36004180a518bf1620cdd5cfc5e1fe77d5a86f", + "zh:4d70a990aa48116ab6f194eef393082c21cf58bece933b63575c63c1d2b66818", + "zh:65470c43fda950c7e9ac89417303c470146de984201fff6ef84299ea29e02d30", + "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", + "zh:842b4dd63e438f5cd5fdfba1c09b8fdf268e8766e6690988ee24e8b25bfd9e8d", + "zh:a167a057f7e2d80c78d4b4057538588131fceb983d5c93b07675ad9eb1aa5790", + "zh:d0ba69b62b6db788cfe3cf8f7dc6e9a0eabe2927dc119d7fe3fe6573ee559e66", + "zh:e28d24c1d5ff24b1d1cc6f0074a1f41a6974f473f4ff7a37e55c7b6dca68308a", + "zh:fde8a50554960e5366fd0e1ca330a7c1d24ae6bbb2888137a5c83d83ce14fd18", + ] +} + +provider "registry.terraform.io/linode/linode" { + version = "1.30.0" + constraints = "1.30.0" + hashes = [ + "h1:d03YFL0XRD3H1SNwxX4tud+xw3j0HERNK81QNpD6e7g=", + "zh:197c61c5eb2252f65c18d2aa65cdc0511617b13e2388118f3fe063d7969dd7ad", + "zh:1a66470682acb13dc57308d5b1eaa19ff60c2404a3b15714e3072d02d569b1a5", + "zh:368cdcf17073a39687da830c02cf3ce50e0d8f03b7ec808b49561628be798abc", + "zh:42f2510a70afbb7fc8928df119d1e14ce1b61d2aded13b88072858ee5861feb2", + "zh:57734dd1e8255abd52a33ff79c20ef4efc3831850b22dd1a628e6301c3cf95c6", + "zh:61d614a7a4607bfc4ab6bfd0501007501957b973dbd028e0e513a3d4df07f12e", + "zh:79243f22fc0a9adfc1123abdd17c515f0ce4d8147302889033b6c44f6a48337e", + "zh:9f7cd46185bbe2c001dab1d0bd6c17a9740e7279d3fffe93755f2c964e267213", + "zh:9fdc9f8f47bde4140bc14cf082bbc2ceb63a3bebf0683df2fefd83c9e248274c", + "zh:aa1fd80a7ea245f8b852e40c68ccde2d8b6446e2138ebdec7425c67e82099881", + "zh:bb31f1ba5b0e001cf343d3a4cfafa70e6f3e30fd8a200d2cd7e077663efe0456", + "zh:da87881fa030287df2009028c49581e1fd0ff89baef0d8543b27ca506eff2971", + "zh:ed6afd7b1bc7237a9dff5c721ca3a5c7c505803cd5ea0b4ad0dfdf07ed6f9b0d", + "zh:ee653d5d08cb331ce2d8dc1010e68d363470ae87be62c0515e5d2418727cd02b", + ] +} diff --git a/lotus-land-story/README.md b/lotus-land-story/README.md new file mode 100644 index 0000000..824daf6 --- /dev/null +++ b/lotus-land-story/README.md @@ -0,0 +1,5 @@ +# Lotus Land Story + +``` +terraform apply +``` diff --git a/lotus-land-story/main.tf b/lotus-land-story/main.tf new file mode 100644 index 0000000..402a6d4 --- /dev/null +++ b/lotus-land-story/main.tf @@ -0,0 +1,29 @@ +terraform { + required_providers { + linode = { + source = "linode/linode" + version = "1.30.0" + } + + http = { + source = "hashicorp/http" + version = "3.2.1" + } + } +} + +data "http" "github_keys" { + url = "https://github.com/kejadlen.keys" +} + +resource "linode_instance" "lotus_land_story" { + label = "lotus_land_story" + image = "linode/debian11" + region = "us-west" + type = "g6-nanode-1" + authorized_keys = split("\n", chomp(data.http.github_keys.response_body)) +} + +output "lotus_land_story_ip" { + value = resource.linode_instance.lotus_land_story.ip_address +}