mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(oci): add provider config
This commit is contained in:
parent
02fcb7b3ae
commit
405b34d414
3 changed files with 18 additions and 0 deletions
|
|
@ -12,4 +12,12 @@ module "oci_servers" {
|
|||
nsg_id = module.oci_common_private_network.nsg_id
|
||||
ssh_authorized_keys = var.kat_pgp_ssh_public_key
|
||||
subnet_id = module.oci_common_private_network.subnet_id
|
||||
|
||||
providers = {
|
||||
oci = oci.oci_compartment
|
||||
}
|
||||
|
||||
depends_on = [
|
||||
module.oci_compartment_bootstrap
|
||||
]
|
||||
}
|
||||
|
|
@ -56,6 +56,7 @@ resource "oci_core_instance" "this" {
|
|||
}
|
||||
|
||||
create_vnic_details {
|
||||
assign_public_ip = true
|
||||
display_name = var.micro_display_names[count.index]
|
||||
hostname_label = lower(var.micro_display_names[count.index])
|
||||
nsg_ids = [var.nsg_id]
|
||||
|
|
|
|||
9
tf/oci_servers/providers.tf
Normal file
9
tf/oci_servers/providers.tf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
# Vendor: Oracle
|
||||
oci = {
|
||||
source = "oracle/oci"
|
||||
version = "5.45.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue