You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"oci_containerengine_cluster" {
source="./modules/oci/r/oci_containerengine_cluster"# compartment_id - (required) is a type of stringcompartment_id=null# kms_key_id - (optional) is a type of stringkms_key_id=null# kubernetes_version - (required) is a type of stringkubernetes_version=null# name - (required) is a type of stringname=null# vcn_id - (required) is a type of stringvcn_id=nullendpoint_config=[{
is_public_ip_enabled =null
nsg_ids = []
subnet_id =null
}]
image_policy_config=[{
is_policy_enabled =null
key_details = [{
kms_key_id =null
}]
}]
options=[{
add_ons = [{
is_kubernetes_dashboard_enabled =null
is_tiller_enabled =null
}]
admission_controller_options = [{
is_pod_security_policy_enabled =null
}]
kubernetes_network_config = [{
pods_cidr =null
services_cidr =null
}]
service_lb_subnet_ids = []
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
resource"oci_containerengine_cluster""this" {
# compartment_id - (required) is a type of stringcompartment_id=var.compartment_id# kms_key_id - (optional) is a type of stringkms_key_id=var.kms_key_id# kubernetes_version - (required) is a type of stringkubernetes_version=var.kubernetes_version# name - (required) is a type of stringname=var.name# vcn_id - (required) is a type of stringvcn_id=var.vcn_iddynamic"endpoint_config" {
for_each=var.endpoint_configcontent {
# is_public_ip_enabled - (optional) is a type of boolis_public_ip_enabled=endpoint_config.value["is_public_ip_enabled"]
# nsg_ids - (optional) is a type of set of stringnsg_ids=endpoint_config.value["nsg_ids"]
# subnet_id - (required) is a type of stringsubnet_id=endpoint_config.value["subnet_id"]
}
}
dynamic"image_policy_config" {
for_each=var.image_policy_configcontent {
# is_policy_enabled - (optional) is a type of boolis_policy_enabled=image_policy_config.value["is_policy_enabled"]
dynamic"key_details" {
for_each=image_policy_config.value.key_detailscontent {
# kms_key_id - (optional) is a type of stringkms_key_id=key_details.value["kms_key_id"]
}
}
}
}
dynamic"options" {
for_each=var.optionscontent {
# service_lb_subnet_ids - (optional) is a type of list of stringservice_lb_subnet_ids=options.value["service_lb_subnet_ids"]
dynamic"add_ons" {
for_each=options.value.add_onscontent {
# is_kubernetes_dashboard_enabled - (optional) is a type of boolis_kubernetes_dashboard_enabled=add_ons.value["is_kubernetes_dashboard_enabled"]
# is_tiller_enabled - (optional) is a type of boolis_tiller_enabled=add_ons.value["is_tiller_enabled"]
}
}
dynamic"admission_controller_options" {
for_each=options.value.admission_controller_optionscontent {
# is_pod_security_policy_enabled - (optional) is a type of boolis_pod_security_policy_enabled=admission_controller_options.value["is_pod_security_policy_enabled"]
}
}
dynamic"kubernetes_network_config" {
for_each=options.value.kubernetes_network_configcontent {
# pods_cidr - (optional) is a type of stringpods_cidr=kubernetes_network_config.value["pods_cidr"]
# services_cidr - (optional) is a type of stringservices_cidr=kubernetes_network_config.value["services_cidr"]
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}
output"available_kubernetes_upgrades" {
description="returns a list of string"value=oci_containerengine_cluster.this.available_kubernetes_upgrades
}
output"endpoints" {
description="returns a list of object"value=oci_containerengine_cluster.this.endpoints
}
output"id" {
description="returns a string"value=oci_containerengine_cluster.this.id
}
output"kms_key_id" {
description="returns a string"value=oci_containerengine_cluster.this.kms_key_id
}
output"lifecycle_details" {
description="returns a string"value=oci_containerengine_cluster.this.lifecycle_details
}
output"metadata" {
description="returns a list of object"value=oci_containerengine_cluster.this.metadata
}
output"state" {
description="returns a string"value=oci_containerengine_cluster.this.state
}
output"this" {
value=oci_containerengine_cluster.this
}