feat(oci): add provider config

This commit is contained in:
Kat Inskip 2024-06-09 11:14:16 -07:00
parent 02fcb7b3ae
commit 405b34d414
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 18 additions and 0 deletions

View file

@ -12,4 +12,12 @@ module "oci_servers" {
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
providers = {
oci = oci.oci_compartment
}
depends_on = [
module.oci_compartment_bootstrap
]
} }

View file

@ -56,6 +56,7 @@ resource "oci_core_instance" "this" {
} }
create_vnic_details { create_vnic_details {
assign_public_ip = true
display_name = var.micro_display_names[count.index] display_name = var.micro_display_names[count.index]
hostname_label = lower(var.micro_display_names[count.index]) hostname_label = lower(var.micro_display_names[count.index])
nsg_ids = [var.nsg_id] nsg_ids = [var.nsg_id]

View file

@ -0,0 +1,9 @@
terraform {
required_providers {
# Vendor: Oracle
oci = {
source = "oracle/oci"
version = "5.45.0"
}
}
}