40 lines
No EOL
1.1 KiB
HCL
40 lines
No EOL
1.1 KiB
HCL
# Buscamos os dados da VCN existente para usar em referências
|
|
data "oci_core_vcn" "vcn" {
|
|
vcn_id = var.vcn_id
|
|
}
|
|
|
|
# Busca o Internet Gateway (IGW) na VCN
|
|
data "oci_core_internet_gateways" "igws" {
|
|
compartment_id = data.oci_core_vcn.vcn.compartment_id
|
|
vcn_id = data.oci_core_vcn.vcn.id
|
|
}
|
|
|
|
# Busca o NAT Gateway (NGW) na VCN
|
|
data "oci_core_nat_gateways" "ngws" {
|
|
compartment_id = data.oci_core_vcn.vcn.compartment_id
|
|
vcn_id = data.oci_core_vcn.vcn.id
|
|
}
|
|
|
|
# Busca o Service Gateway (SGW) na VCN
|
|
data "oci_core_service_gateways" "sgws" {
|
|
compartment_id = data.oci_core_vcn.vcn.compartment_id
|
|
vcn_id = data.oci_core_vcn.vcn.id
|
|
}
|
|
|
|
# Busca a lista de serviços disponíveis na região atual
|
|
data "oci_core_services" "all_services" {
|
|
filter {
|
|
name = "name"
|
|
values = ["All .* Services In Oracle Services Network"]
|
|
regex = true
|
|
}
|
|
}
|
|
|
|
# Busca apenas o Object Storage (usado na rota PUBLIC conforme seu arquivo)
|
|
data "oci_core_services" "object_storage" {
|
|
filter {
|
|
name = "name"
|
|
values = [".*Object Storage"]
|
|
regex = true
|
|
}
|
|
} |