this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(infra): use SSH key generated from Terraform instead

+12 -2
+11 -1
infra/main.tf
··· 10 10 compartment_id = module.base.compartment_id 11 11 } 12 12 13 + resource "tls_private_key" "ssh" { 14 + algorithm = "ED25519" 15 + } 16 + 17 + resource "local_file" "ssh_private_key" { 18 + content = tls_private_key.ssh.private_key_openssh 19 + filename = "${path.root}/private.pem" 20 + file_permission = "0600" 21 + } 22 + 13 23 module "instance" { 14 24 source = "./modules/instance" 15 25 compartment_id = module.base.compartment_id 16 26 display_name = "horus" 17 27 subnet_id = module.network.subnet_id 18 - ssh_public_key = file("~/.ssh/id_ed25519.pub") 28 + ssh_public_key = tls_private_key.ssh.public_key_openssh 19 29 shape = { 20 30 name = "VM.Standard.A1.Flex" 21 31 config = {
+1 -1
infra/versions.tf
··· 1 1 terraform { 2 - required_version = "~> 1.1.0" 2 + required_version = "~> 1.2.0" 3 3 4 4 backend "remote" { 5 5 organization = "khuedoan"