feat(oci): move variables

This commit is contained in:
Kat Inskip 2024-06-09 11:12:53 -07:00
parent e5b2f39e99
commit 02fcb7b3ae
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 13 additions and 13 deletions

View file

@ -10,6 +10,6 @@ module "oci_servers" {
tenancy_ocid = module.oci_compartment_bootstrap.child_compartment_id tenancy_ocid = module.oci_compartment_bootstrap.child_compartment_id
nsg_id = module.oci_common_private_network.nsg_id nsg_id = module.oci_common_private_network.nsg_id
ssh_authorized_keys = [var.kat_pgp_ssh_public_key] ssh_authorized_keys = var.kat_pgp_ssh_public_key
subnet_id = module.oci_common_private_network.subnet_id subnet_id = module.oci_common_private_network.subnet_id
} }

View file

@ -24,6 +24,18 @@ variable "tenancy_ocid" {
type = string type = string
} }
variable "ssh_authorized_keys" {
type = string
}
variable "nsg_id" {
type = any
}
variable "subnet_id" {
type = any
}
data "oci_identity_availability_domains" "this" { data "oci_identity_availability_domains" "this" {
compartment_id = var.tenancy_ocid compartment_id = var.tenancy_ocid
} }

View file

@ -30,18 +30,6 @@ variable "micro_display_names" {
type = list(string) type = list(string)
} }
variable "ssh_authorized_keys" {
type = list(string)
}
variable "nsg_id" {
type = any
}
variable "subnet_id" {
type = any
}
resource "oci_core_instance" "this" { resource "oci_core_instance" "this" {
count = 2 count = 2