style: nix fmt

This commit is contained in:
Kat Inskip 2025-07-13 05:10:57 -07:00
parent 7913481b66
commit 6e0cc170eb
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
112 changed files with 1977 additions and 1739 deletions

View file

@ -1,6 +1,6 @@
resource "oci_identity_api_key" "this" {
key_value = local.child_compartment_public_key
user_id = local.child_compartment_user
user_id = local.child_compartment_user
}
locals {

View file

@ -5,8 +5,8 @@ variable "tenancy_ocid" {
resource "oci_identity_compartment" "this" {
# Compartment ID is Tenancy ID for this case
compartment_id = var.tenancy_ocid
description = "Compartment for Terraform usage"
name = "kittywitch-tf"
description = "Compartment for Terraform usage"
name = "kittywitch-tf"
}

View file

@ -1,6 +1,6 @@
resource "oci_identity_group" "this" {
compartment_id = var.tenancy_ocid
name = "terraform"
name = "terraform"
description = "terraform"
}

View file

@ -1,4 +1,4 @@
resource "oci_identity_user_group_membership" "this" {
user_id = oci_identity_user.this.id
user_id = oci_identity_user.this.id
group_id = oci_identity_group.this.id
}

View file

@ -10,7 +10,7 @@ ANY { request.operation = 'CreateNetworkSecurityGroup', request.operation = 'Del
resource "oci_identity_policy" "terraform-admin" {
compartment_id = var.tenancy_ocid
name = "terraform-admin"
name = "terraform-admin"
description = "terraform-admin"
statements = [

View file

@ -2,12 +2,12 @@ terraform {
required_providers {
# Vendor: Hashicorp
tls = {
source = "hashicorp/tls"
source = "hashicorp/tls"
version = "4.0.5"
}
# Vendor: Oracle
oci = {
source = "oracle/oci"
source = "oracle/oci"
version = "5.45.0"
}
}

View file

@ -2,12 +2,12 @@ resource "tls_private_key" "this" {
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_api_key#key_value
# "The public key. Must be an RSA key in PEM format."
algorithm = "RSA"
rsa_bits = 4096
rsa_bits = 4096
}
locals {
child_compartment_private_key = tls_private_key.this.private_key_pem
child_compartment_public_key = tls_private_key.this.public_key_pem
child_compartment_public_key = tls_private_key.this.public_key_pem
}
output "child_compartment_private_key" {

View file

@ -4,9 +4,9 @@ variable "user_email" {
resource "oci_identity_user" "this" {
compartment_id = local.child_compartment_id
description = "The user for Terraform to use"
name = "terraform"
email = var.user_email
description = "The user for Terraform to use"
name = "terraform"
email = var.user_email
}
locals {