|
| 1 | +# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | +# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. |
| 3 | +# |
| 4 | +############################ |
| 5 | +# |
| 6 | +# Variables Block |
| 7 | +# AWS OCI |
| 8 | +# |
| 9 | +############################ |
| 10 | + |
| 11 | +# ============================ |
| 12 | +# Mandatory: AWS Authentication |
| 13 | +# ============================ |
| 14 | + |
| 15 | +variable "aws_region" { |
| 16 | + description = "AWS region for provider configuration" |
| 17 | + type = string |
| 18 | + default = "<AWS_REGION>" |
| 19 | +} |
| 20 | + |
| 21 | +variable "aws_access_key" { |
| 22 | + description = "AWS Access Key" |
| 23 | + type = string |
| 24 | + sensitive = true |
| 25 | + default = "<AWS_ACCESS_KEY>" |
| 26 | +} |
| 27 | + |
| 28 | +variable "aws_secret_key" { |
| 29 | + description = "AWS Secret Key" |
| 30 | + type = string |
| 31 | + sensitive = true |
| 32 | + default = "<AWS_SECRET_KEY>" |
| 33 | +} |
| 34 | + |
| 35 | +############################### |
| 36 | +# Oracle ExaInfra @AWS ###### |
| 37 | +############################### |
| 38 | + |
| 39 | +variable "aws_oci_exa_infra" { |
| 40 | + description = "Map of Exadata Infrastructure configurations." |
| 41 | + type = map(object({ |
| 42 | + environment = string |
| 43 | + region = string |
| 44 | + availability_zone = string |
| 45 | + availability_zone_id = string |
| 46 | + display_name = string |
| 47 | + shape = string |
| 48 | + compute_count = number |
| 49 | + storage_count = number |
| 50 | + database_server_type = string |
| 51 | + storage_server_type = string |
| 52 | + customer_contacts = list(object({ email = string })) |
| 53 | + |
| 54 | + # Maintenance Window |
| 55 | + maintenance_window = optional(object({ |
| 56 | + patching_mode = optional(string, "ROLLING") |
| 57 | + preference = optional(string, "NO_PREFERENCE") |
| 58 | + is_custom_action_timeout_enabled = optional(bool, false) |
| 59 | + custom_action_timeout_in_mins = optional(number, 15) |
| 60 | + days_of_week = optional(list(string), null) |
| 61 | + hours_of_day = optional(list(number), null) |
| 62 | + lead_time_in_weeks = optional(number, null) |
| 63 | + months = optional(list(string), null) |
| 64 | + weeks_of_month = optional(list(number), null) |
| 65 | + }), {}) |
| 66 | + |
| 67 | + # Tags |
| 68 | + tags = optional(map(string), {}) |
| 69 | + })) |
| 70 | + default = {} |
| 71 | +} |
| 72 | + |
| 73 | + |
| 74 | +############################### |
| 75 | +# Oracle ExaVM Cluster @AWS ### |
| 76 | +############################### |
| 77 | + |
| 78 | +variable "aws_oci_exa_vmclusters" { |
| 79 | + description = "Map of VM Cluster configurations" |
| 80 | + type = map(object({ |
| 81 | + # MANDATORY |
| 82 | + environment = string |
| 83 | + region = string |
| 84 | + exadata_infrastructure_name = string |
| 85 | + odb_network_name = string |
| 86 | + display_name = string |
| 87 | + cluster_name = string |
| 88 | + gi_version = string |
| 89 | + hostname_prefix = string |
| 90 | + cpu_core_count = number |
| 91 | + memory_size_in_gbs = number |
| 92 | + data_storage_size_in_tbs = number |
| 93 | + db_node_storage_size_in_gbs = number |
| 94 | + ssh_public_keys = list(string) |
| 95 | + |
| 96 | + # OPTIONAL |
| 97 | + license_model = string |
| 98 | + timezone = string |
| 99 | + scan_listener_port_tcp = number |
| 100 | + data_collection_options = object({ |
| 101 | + is_diagnostics_events_enabled = bool |
| 102 | + is_health_monitoring_enabled = bool |
| 103 | + is_incident_logs_enabled = bool |
| 104 | + }) |
| 105 | + timeout_create = string |
| 106 | + timeout_update = string |
| 107 | + timeout_delete = string |
| 108 | + |
| 109 | + # IMMUTABLE |
| 110 | + is_local_backup_enabled = bool |
| 111 | + is_sparse_diskgroup_enabled = bool |
| 112 | + |
| 113 | + # TAGS |
| 114 | + tags = map(string) |
| 115 | + })) |
| 116 | + default = {} |
| 117 | +} |
| 118 | + |
0 commit comments