The following cloudbrick enables you to create a Datalake Workspace inside OCI
The following is the reference architecture associated to this brick
- Pre existent Compartment Structure
- Pre existent VCN, Subnet
If the datalake is created on a private subnet
######################################## COMMON VARIABLES ######################################
region = "foo-region-1"
tenancy_ocid = "ocid1.tenancy.oc1..abcdefg"
user_ocid = "ocid1.user.oc1..aaaaaaabcdefg"
fingerprint = "fo:oo:ba:ar:ba:ar"
private_key_path = "/absolute/path/to/api/key/your_api_key.pem"
######################################## COMMON VARIABLES ######################################
######################################## ARTIFACT SPECIFIC VARIABLES ######################################
integration_workspace_display_name = "my-datalake-workspace"
integration_workspace_description = "Datalake description"
integration_workspace_instance_compartment_name = "MY_ARTIFACT_COMPARTMENT"
integration_workspace_network_compartment_name = "MY_NETWORK_COMPARTMENT"
workspace_is_private_network_enabled = true
network_subnet_name = "My_Subnet"
vcn_display_name = "MY_VCN"
######################################## ARTIFACT SPECIFIC VARIABLES ######################################
If the datalake is created on a public endpoint
######################################## COMMON VARIABLES ######################################
region = "foo-region-1"
tenancy_ocid = "ocid1.tenancy.oc1..abcdefg"
user_ocid = "ocid1.user.oc1..aaaaaaabcdefg"
fingerprint = "fo:oo:ba:ar:ba:ar"
private_key_path = "/absolute/path/to/api/key/your_api_key.pem"
######################################## COMMON VARIABLES ######################################
######################################## ARTIFACT SPECIFIC VARIABLES ######################################
integration_workspace_display_name = "my_datalake_workspace"
integration_workspace_description = "Datalake description"
integration_workspace_instance_compartment_name = "MY_ARTIFACT_COMPARTMENT"
integration_workspace_network_compartment_name = "MY_NETWORK_COMPARTMENT"
workspace_is_private_network_enabled = false
######################################## ARTIFACT SPECIFIC VARIABLES ######################################
- If the datalake is created on a private subnet, the following variables are mandatory:
workspace_is_private_network_enabled
must be set totrue
network_subnet_name
andvcn_display_name
must be provided
- In any other case, only variable
workspace_is_private_network_enabled
must be set tofalse
dropping the need of the subsequent variables
terraform {
required_version = ">= 0.13.5"
}
provider "oci" {
region = var.region
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
disable_auto_retries = "true"
}
provider "oci" {
alias = "home"
region = data.oci_identity_region_subscriptions.home_region_subscriptions.region_subscriptions[0].region_name
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
disable_auto_retries = "true"
}
Name | Version |
---|---|
terraform | >= 0.13.5 |
Name | Version |
---|---|
oci | n/a |
No modules.
Name | Type |
---|---|
oci_dataintegration_workspace.Workspace | resource |
oci_core_subnets.SUBNET | data source |
oci_core_vcns.VCN | data source |
oci_identity_compartments.COMPARTMENTS | data source |
oci_identity_compartments.NWCOMPARTMENTS | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
fingerprint | API Key Fingerprint for user_ocid derived from public API Key imported in OCI User config | any |
n/a | yes |
integration_workspace_description | Description of the integration workspace | any |
n/a | yes |
integration_workspace_display_name | Display name of the integration workspace | any |
n/a | yes |
integration_workspace_instance_compartment_name | Compartment name where the integration workspace instance will be created | any |
n/a | yes |
integration_workspace_network_compartment_name | Compartment name where the integration workspace network will be created | any |
n/a | yes |
network_subnet_name | Display name of the subnet | any |
n/a | yes |
private_key_path | Private Key Absolute path location where terraform is executed | any |
n/a | yes |
region | Target region where artifacts are going to be created | any |
n/a | yes |
tenancy_ocid | OCID of tenancy | any |
n/a | yes |
user_ocid | User OCID in tenancy. | any |
n/a | yes |
vcn_display_name | Display name of the VCN | any |
n/a | yes |
workspace_is_private_network_enabled | Enable/Disable private network for the integration workspace | bool |
false |
no |
Name | Description |
---|---|
dataintegrationworkspace | Workspace Object |
This project is open source. Please submit your contributions by forking this repository and submitting a pull request! Oracle appreciates any contributions that are made by the open source community.
Copyright (c) 2021 Oracle and/or its affiliates.
Licensed under the Universal Permissive License (UPL), Version 1.0.
See LICENSE for more details.