1+ // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+ // Licensed under the Mozilla Public License v2.0
3+
4+ resource "oci_lustre_file_storage_lustre_file_system" "test_lustre_file_system" {
5+ # Required
6+ availability_domain = data. oci_identity_availability_domain . ad . name
7+ capacity_in_gbs = var. lustre_file_system_capacity_in_gbs
8+ compartment_id = var. compartment_ocid
9+ file_system_name = var. lustre_file_system_name
10+ performance_tier = var. lustre_file_system_performance_tier
11+ root_squash_configuration {
12+
13+ # Optional
14+ client_exceptions = var. lustre_file_system_root_squash_configuration_client_exceptions
15+ identity_squash = var. lustre_file_system_root_squash_configuration_identity_squash
16+ squash_gid = var. lustre_file_system_root_squash_configuration_squash_gid
17+ squash_uid = var. lustre_file_system_root_squash_configuration_squash_uid
18+ }
19+ subnet_id = oci_core_subnet. my_subnet . id
20+
21+ # Optional
22+ cluster_placement_group_id = oci_cluster_placement_groups_cluster_placement_group. test_cpg . id
23+ # defined_tags = map(oci_identity_tag_namespace.tag-namespace1.name.oci_identity_tag.tag1.name, var.lustre_file_system_defined_tags_value)
24+ display_name = var. lustre_file_system_display_name
25+ file_system_description = var. lustre_file_system_file_system_description
26+
27+ freeform_tags = {
28+ " Department" = " Finance"
29+ }
30+ }
31+
32+ data "oci_lustre_file_storage_lustre_file_system" "lustre_file_system" {
33+ lustre_file_system_id = oci_lustre_file_storage_lustre_file_system. test_lustre_file_system . id
34+ # Optional
35+ # availability_domain = var.lustre_file_system_availability_domain
36+ # compartment_id = var.compartment_id
37+ # display_name = var.lustre_file_system_display_name
38+ # state = var.lustre_file_system_state
39+ }
40+
41+ data "oci_lustre_file_storage_lustre_file_systems" "lustre_file_systems" {
42+ compartment_id = var. compartment_ocid
43+ # Optional
44+ # availability_domain = var.lustre_file_system_availability_domain
45+ # display_name = var.lustre_file_system_display_name
46+ # id = var.lustre_file_system_id
47+ # state = var.lustre_file_system_state
48+ }
49+
50+ data "oci_identity_availability_domain" "ad" {
51+ compartment_id = var. tenancy_ocid
52+ ad_number = 1
53+ }g
0 commit comments