You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
603 B
30 lines
603 B
2 years ago
|
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
|
||
|
}
|