mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat(oci): add email to new user
This commit is contained in:
parent
ec8ed664ff
commit
a55e60260a
4 changed files with 14 additions and 5 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
/*
|
|
||||||
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformgettingstarted.htm
|
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformgettingstarted.htm
|
||||||
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
|
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
|
||||||
provider "oci" {
|
provider "oci" {
|
||||||
|
|
@ -28,4 +27,4 @@ module "oci_common_private_network" {
|
||||||
depends_on = [
|
depends_on = [
|
||||||
module.oci_compartment_bootstrap
|
module.oci_compartment_bootstrap
|
||||||
]
|
]
|
||||||
}*/
|
}
|
||||||
|
|
@ -20,6 +20,10 @@ variable "oci_compartment_bootstrap_fingerprint" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "oci_compartment_bootstrap_user_email" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformgettingstarted.htm
|
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformgettingstarted.htm
|
||||||
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
|
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
|
||||||
provider "oci" {
|
provider "oci" {
|
||||||
|
|
@ -36,6 +40,7 @@ module "oci_compartment_bootstrap" {
|
||||||
source = "./oci_compartment_bootstrap"
|
source = "./oci_compartment_bootstrap"
|
||||||
|
|
||||||
tenancy_ocid = var.oci_compartment_bootstrap_tenancy_ocid
|
tenancy_ocid = var.oci_compartment_bootstrap_tenancy_ocid
|
||||||
|
user_email = var.oci_compartment_bootstrap_user_email
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
oci = oci.oci_root
|
oci = oci.oci_root
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
|
variable "user_email" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
resource "oci_identity_user" "this" {
|
resource "oci_identity_user" "this" {
|
||||||
compartment_id = local.child_compartment_id
|
compartment_id = local.child_compartment_id
|
||||||
description = "The user for Terraform to use"
|
description = "The user for Terraform to use"
|
||||||
name = "terraform"
|
name = "terraform"
|
||||||
|
email = var.user_email
|
||||||
}
|
}
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue