Skip to content

Commit

Permalink
Add splitting module to a few ones + examples mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Natarov authored and Vitaliy Natarov committed Jan 14, 2025
1 parent 7716a9a commit 85a0e49
Show file tree
Hide file tree
Showing 23 changed files with 188 additions and 4 deletions.
4 changes: 4 additions & 0 deletions oracle_cloud/examples/identity_group/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Work with identity_group via terraform

A terraform module for making identity_group.

28 changes: 28 additions & 0 deletions oracle_cloud/examples/identity_group/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# MAINTAINER Vitaliy Natarov "[email protected]"
#

terraform {
required_version = "~> 1.0"

required_providers {
oci = {
source = "oracle/oci"
version = "6.21.0"
}
}
}

provider "oci" {
fingerprint = var.provider_oci_fingerprint
private_key_path = var.provider_oci_private_key_path
region = var.provider_oci_region
tenancy_ocid = var.provider_oci_tenancy_ocid
user_ocid = var.provider_oci_user_ocid
alias = var.provider_oci_alias
}

module "identity_group" {
source = "../../modules/identity_group"

}
37 changes: 37 additions & 0 deletions oracle_cloud/examples/identity_group/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# provider identity parameters
variable "provider_oci_fingerprint" {
type = string
description = "fingerprint of oci api private key"
default = ""
}

variable "provider_oci_private_key_path" {
type = string
description = "path to oci api private key used"
default = ""
}

variable "provider_oci_region" {
type = string
# List of regions: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#ServiceAvailabilityAcrossRegions
description = "the oci region where resources will be created"
default = ""
}

variable "provider_oci_tenancy_ocid" {
type = string
description = "tenancy id where to create the sources"
default = ""
}

variable "provider_oci_user_ocid" {
type = string
description = "id of user that terraform will use to create the resources"
default = ""
}

variable "provider_oci_alias" {
type = string
description = "Set alias for provider"
default = ""
}
4 changes: 4 additions & 0 deletions oracle_cloud/examples/identity_user/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Work with identity_user via terraform

A terraform module for making identity_user.

28 changes: 28 additions & 0 deletions oracle_cloud/examples/identity_user/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# MAINTAINER Vitaliy Natarov "[email protected]"
#

terraform {
required_version = "~> 1.0"

required_providers {
oci = {
source = "oracle/oci"
version = "6.21.0"
}
}
}

provider "oci" {
fingerprint = var.provider_oci_fingerprint
private_key_path = var.provider_oci_private_key_path
region = var.provider_oci_region
tenancy_ocid = var.provider_oci_tenancy_ocid
user_ocid = var.provider_oci_user_ocid
alias = var.provider_oci_alias
}

module "identity_user" {
source = "../../modules/identity_user"

}
37 changes: 37 additions & 0 deletions oracle_cloud/examples/identity_user/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# provider identity parameters
variable "provider_oci_fingerprint" {
type = string
description = "fingerprint of oci api private key"
default = ""
}

variable "provider_oci_private_key_path" {
type = string
description = "path to oci api private key used"
default = ""
}

variable "provider_oci_region" {
type = string
# List of regions: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#ServiceAvailabilityAcrossRegions
description = "the oci region where resources will be created"
default = ""
}

variable "provider_oci_tenancy_ocid" {
type = string
description = "tenancy id where to create the sources"
default = ""
}

variable "provider_oci_user_ocid" {
type = string
description = "id of user that terraform will use to create the resources"
default = ""
}

variable "provider_oci_alias" {
type = string
description = "Set alias for provider"
default = ""
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#-----------------------------------------------------------
# identity_api_key
# identity_identity_provider
#-----------------------------------------------------------

# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_api_key
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_identity_provider
3 changes: 3 additions & 0 deletions oracle_cloud/modules/identity_group/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#-----------------------------------------------------------
# TMP
#-----------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#-----------------------------------------------------------
# identity_api_key
# identity_user_group_membership
#-----------------------------------------------------------

# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_api_key
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_user_group_membership
17 changes: 17 additions & 0 deletions oracle_cloud/modules/identity_group/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#-----------------------------------------------------------
# Global
#-----------------------------------------------------------
variable "name" {
description = "The name for resources"
default = "test"
}

variable "environment" {
description = "The environment for resources"
default = "dev"
}

#-----------------------------------------------------------
# TMP
#-----------------------------------------------------------

File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions oracle_cloud/modules/identity_user/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#-----------------------------------------------------------
# TMP
#-----------------------------------------------------------
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# identity_ui_password
#-----------------------------------------------------------


# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_ui_password
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#-----------------------------------------------------------
# identity_user_capabilities_management
#-----------------------------------------------------------

# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_user_capabilities_management
17 changes: 17 additions & 0 deletions oracle_cloud/modules/identity_user/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#-----------------------------------------------------------
# Global
#-----------------------------------------------------------
variable "name" {
description = "The name for resources"
default = "test"
}

variable "environment" {
description = "The environment for resources"
default = "dev"
}

#-----------------------------------------------------------
# TMP
#-----------------------------------------------------------

0 comments on commit 85a0e49

Please sign in to comment.