Skip to content

Latest commit

 

History

History
106 lines (94 loc) · 13.3 KB

File metadata and controls

106 lines (94 loc) · 13.3 KB

aws-oci-adbd-quickstart

This is a quick-start template for provisioning an Autonomous Database@AWS with ODB network peering to an existing or new VPC.

Requirements

Name Version
terraform >= 1.0
aws >= 6.15.0
local >= 2.5.1

Providers

Name Version
aws >=6.15.0
oci n/a

Modules

Name Source Version
acd ../../modules/oci-db-acd n/a
adb ../../modules/oci-db-adb n/a
autonomous_vm_cluster ../../modules/aws-odb-avmc n/a
aws_ia_vpc aws-ia/vpc/aws 4.5.0
exadata_infrastructure github.com/chanstev/terraform-oci-multicloud-aws//modules/aws-odb-exadata-infra n/a
network_peering ../../modules/aws-odb-peering n/a
odb_network ../../modules/aws-odb-network n/a

Resources

No resources.

Inputs

Name Description Type Default Required
acd_display_name Display name for the Autonomous Container Database string n/a yes
acd_patch_model The Autonomous Container Database patch model string "RELEASE_UPDATES" no
adb_admin_password Admin password for the Autonomous Database string n/a yes
adb_compute_count Compute count for the Autonomous Database number 2 no
adb_compute_model Compute model for the Autonomous Database string "ECPU" no
adb_data_storage_size_in_tbs Data storage size in TBs for the Autonomous Database number 1 no
adb_db_name Database name for the Autonomous Database string n/a yes
availability_zone AWS resources availability zone, e.g. us-west-2c string n/a yes
availability_zone_id AWS resources availability zone ID, e.g. usw2-az3 string n/a yes
avmc_autonomous_data_storage_size_in_tbs Autonomous data storage size in TBs number 5 no
avmc_cpu_core_count_per_node CPU core count per node number 16 no
avmc_db_servers List of DB server IDs set(string) null no
avmc_is_mtls_enabled_vm_cluster Is mTLS enabled for the Autonomous VM cluster bool false no
avmc_license_model License model for the autonomous VM cluster (LICENSE_INCLUDED or BRING_YOUR_OWN_LICENSE) string "BRING_YOUR_OWN_LICENSE" no
avmc_maintenance_window Maintenance window configuration for the Autonomous VM cluster
object({
preference = string
days_of_week = optional(set(object(
{ name = string }
)))
hours_of_day = optional(set(number))
lead_time_in_weeks = optional(number)
months = optional(set(object(
{ name = string }
)))
weeks_of_month = optional(set(number))
})
{
"preference": "NO_PREFERENCE"
}
no
avmc_memory_per_oracle_compute_unit_in_gbs Memory per Oracle compute unit in GBs number 2 no
avmc_name Display name for the autonomous VM cluster string n/a yes
avmc_scan_listener_port_non_tls SCAN listener port for non-TLS (TCP) protocol number 1521 no
avmc_scan_listener_port_tls SCAN listener port for TLS (TCP) protocol number 2484 no
avmc_total_container_databases Total number of container databases number 1 no
aws_access_key Aws access key string null no
aws_profile Aws profile name string "default" no
aws_region AWS Region, e.g. us-west-2 string n/a yes
aws_secret_key Aws secret key string null no
aws_shared_config_files Aws shared config files list(string)
[
"~/.aws/config"
]
no
exadata_infrastructure_compute_count Number of Compute Servers number 2 no
exadata_infrastructure_customer_contacts List of customer contacts to send notifications to OCI set(object({ email = string })) null no
exadata_infrastructure_maintenance_window Maintenance window configuration for the Exadata Infrastructure
object({
patching_mode = string
preference = string
is_custom_action_timeout_enabled = optional(bool)
custom_action_timeout_in_mins = optional(number)
days_of_week = optional(set(object(
{ name = string }
)))
hours_of_day = optional(set(number))
lead_time_in_weeks = optional(number)
months = optional(set(object(
{ name = string }
)))
weeks_of_month = optional(set(number))
})
{
"custom_action_timeout_in_mins": 15,
"is_custom_action_timeout_enabled": false,
"patching_mode": "ROLLING",
"preference": "NO_PREFERENCE"
}
no
exadata_infrastructure_name Display name of Exadata Infrastructure string n/a yes
exadata_infrastructure_shape Shape of Exadata Infrastructure string "Exadata.X11M" no
exadata_infrastructure_storage_count Number of Storage Servers number 3 no
oci_auth OCI Authentication method, default: APIKey, InstancePrincipal | ResourcePrincipal | SecurityToken string "APIKey" no
oci_config_file_profile OCI Config file name string "DEFAULT" no
oci_fingerprint Fingerprint for the key pair being used string null no
oci_private_key_password Passphrase used for the key, if it's encrypted string null no
oci_private_key_path The path (including filename) of the private key string null no
oci_region OCI Region, e.g. us-phoenix-1 string null no
oci_tenancy_ocid OCID of the OCI tenancy string null no
oci_user_ocid OCID of the OCI user string null no
odb_network_backup_subnet_cidr CIDR range of ODB backup subnet (optional) string null no
odb_network_client_subnet_cidr CIDR range of ODB client subnet string n/a yes
odb_network_default_dns_prefix Default DNS prefix for the ODB network (optional) string null no
odb_network_name Name of the ODB network string n/a yes
odb_network_s3_access S3 access for the ODB network (ENABLED or DISABLED) string "DISABLED" no
odb_network_s3_policy_document S3 policy document as string (optional) string null no
odb_network_zero_etl_access Zero ETL access for the ODB network (ENABLED or DISABLED) string "DISABLED" no
odb_peering_connection_display_name Display name for the ODB peering connection (optional) string null no
odb_peering_connection_peer_network_id ID of VPC of Peer Network string null no
tags Tags to apply to resources map(string)
{
"provisionedby": "terraform",
"usecase": "Oracle Database@AWS"
}
no
vpc_cidr CIDR range of VPC string n/a yes
vpc_name Name of the VPC string n/a yes
vpc_workload_subnet_cidr CIDR range of Workload Subnet string n/a yes

Outputs

Name Description
acd_id The OCID of the created ACD
avm_cluster_id AVM Cluster ID
avm_cluster_ocid AVM Cluster OCID
aws_odb_exa_resource_id Exadata Infrastructure ID in AWS
aws_odb_network_oci_vcn_id AWS ODB network OCI id
aws_odb_network_resource_id Resource ID of ODB network in AWS
db_id The OCID of the created ADBD
exa_resource_ocid Exadata Infrastructure OCID
odb_peering_connection ODB Peering Connection