Improve Deep Data Security lab scenarios
Some checks failed
Repo Quality / structure (push) Has been cancelled
Terraform Validate / validate (push) Has been cancelled

This commit is contained in:
2026-05-13 16:11:12 -03:00
parent 8314351c98
commit db3d68af10
134 changed files with 401 additions and 273 deletions

0
terraform/README.md Normal file → Executable file
View File

0
terraform/envs/demo/.terraform.lock.hcl generated Normal file → Executable file
View File

0
terraform/envs/demo/main.tf Normal file → Executable file
View File

0
terraform/envs/demo/outputs.tf Normal file → Executable file
View File

0
terraform/envs/demo/provider.tf Normal file → Executable file
View File

6
terraform/envs/demo/terraform.tfvars.example Normal file → Executable file
View File

@@ -8,6 +8,10 @@ region = "sa-saopaulo-1"
owner = "database-security-team"
name_prefix = "dds-lab"
# The Autonomous Database DB name must be unique in the tenancy/region.
# Change this if another ADB named DDSLAB already exists.
adb_db_name = "DDSLAB"
adb_admin_password = "REPLACE_WITH_STRONG_PASSWORD_DO_NOT_COMMIT"
# Set only when the target version is available in your tenancy/region.
@@ -18,6 +22,6 @@ enable_compute_bastion = false
# Required only when enable_compute_bastion = true.
# bastion_availability_domain = "xxxx:SA-SAOPAULO-1-AD-1"
# The image OCID must be compatible with bastion_shape in the selected region.
# bastion_image_ocid = "ocid1.image.oc1.sa-saopaulo-1.example"
# bastion_ssh_public_key = "ssh-rsa AAAA..."

0
terraform/envs/demo/variables.tf Normal file → Executable file
View File

0
terraform/envs/demo/versions.tf Normal file → Executable file
View File

0
terraform/modules/autonomous_database/main.tf Normal file → Executable file
View File

0
terraform/modules/autonomous_database/outputs.tf Normal file → Executable file
View File

0
terraform/modules/autonomous_database/variables.tf Normal file → Executable file
View File

0
terraform/modules/autonomous_database/versions.tf Normal file → Executable file
View File

0
terraform/modules/compute_bastion/main.tf Normal file → Executable file
View File

0
terraform/modules/compute_bastion/outputs.tf Normal file → Executable file
View File

0
terraform/modules/compute_bastion/variables.tf Normal file → Executable file
View File

0
terraform/modules/compute_bastion/versions.tf Normal file → Executable file
View File

7
terraform/modules/network/main.tf Normal file → Executable file
View File

@@ -6,11 +6,15 @@ data "oci_core_services" "oracle_services" {
}
}
locals {
vcn_dns_label = substr(replace(lower(var.name_prefix), "-", ""), 0, 15)
}
resource "oci_core_vcn" "this" {
compartment_id = var.compartment_id
cidr_block = var.vcn_cidr
display_name = "${var.name_prefix}-vcn"
dns_label = replace(var.name_prefix, "-", "")
dns_label = local.vcn_dns_label
freeform_tags = var.freeform_tags
}
@@ -179,4 +183,3 @@ resource "oci_core_network_security_group_security_rule" "app_egress_https" {
}
}
}

0
terraform/modules/network/outputs.tf Normal file → Executable file
View File

0
terraform/modules/network/variables.tf Normal file → Executable file
View File

0
terraform/modules/network/versions.tf Normal file → Executable file
View File

0
terraform/modules/vault/main.tf Normal file → Executable file
View File

0
terraform/modules/vault/outputs.tf Normal file → Executable file
View File

0
terraform/modules/vault/variables.tf Normal file → Executable file
View File

0
terraform/modules/vault/versions.tf Normal file → Executable file
View File