This repository has been archived by the owner on May 13, 2024. It is now read-only.
generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fss.tf
51 lines (41 loc) · 1.87 KB
/
fss.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## Copyright © 2020, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
resource "oci_file_storage_file_system" "WS_file_system" {
availability_domain = data.oci_identity_availability_domains.ADs.availability_domains[0]["name"]
compartment_id = var.compartment_ocid
display_name = var.file_system_display_name
}
resource "oci_file_storage_export_set" "WS_export_set" {
mount_target_id = oci_file_storage_mount_target.WS_mount_target.id
# #Optional
# display_name = "${var.export_set_name}"
# max_fs_stat_bytes = 23843202333
# max_fs_stat_files = 223442
}
resource "oci_file_storage_export" "WS_export" {
#Required
export_set_id = oci_file_storage_export_set.WS_export_set.id
file_system_id = oci_file_storage_file_system.WS_file_system.id
path = var.export_path
# #Optional
# export_options {
# #Required
# source = var.export_export_options_source
# # #Optional
# # access = "${var.export_export_options_access}"
# # anonymous_gid = "${var.export_export_options_anonymous_gid}"
# # anonymous_uid = "${var.export_export_options_anonymous_uid}"
# # identity_squash = "${var.export_export_options_identity_squash}"
# # require_privileged_source_port = "${var.export_export_options_require_privileged_source_port}"
# }
}
resource "oci_file_storage_mount_target" "WS_mount_target" {
#Required
availability_domain = data.oci_identity_availability_domains.ADs.availability_domains[0]["name"]
compartment_id = var.compartment_ocid
subnet_id = oci_core_subnet.vcn01_subnet_app01.id
#Optional
# hostname_label = var.mount_target_hostname_label
# ip_address = "${var.mount_target_ip_address}"
nsg_ids = [oci_core_network_security_group.FSSSecurityGroup.id]
}