oracle-terraform-modules / terraform-oci-tdf-file-storage Goto Github PK
View Code? Open in Web Editor NEW(OCI) Oracle Cloud Infrastructure module to provision a File Storage Service
License: Universal Permissive License v1.0
(OCI) Oracle Cloud Infrastructure module to provision a File Storage Service
License: Universal Permissive License v1.0
I've been trying to create multiple exports with multiple export options for a single File System but I haven't been able to make it work. Only one export option is created.
Below is my main file. Could you please tell me if I'm defining this wrong or this is a feature that needs to be added to the module?
module "oci_file_storage_service" {
source = "../"
providers = {
oci.custom_provider = oci
}
file_storage_config = {
default_compartment_id = "ocid1.compartment.oc1..aaaaaaaan4roedlm6bzqqo2wqvulsotxtfkudcksbzlde4r7s6j4vt2l7kvq"
default_defined_tags = {}
default_freeform_tags = null
default_ad = "2"
file_systems = {
fs_1 = {
ad = null
compartment_id = null
defined_tags = {}
freeform_tags = null
}
}
mount_targets = {
mt_1 = {
ad = null
subnet_id = "ocid1.subnet.oc1.iad.aaaaaaaauaqku73o5ioj7oznic4l6wfudp67ulrwjq5bwmpko7alahxjwvfa"
hostname_label = null
ip_address = null
compartment_id = null
defined_tags = {}
freeform_tags = null
export_set = {
max_fs_stat_bytes = null
max_fs_stat_files = null
}
file_systems = {
"fs_1" = {
path = "/mnt/test1"
export_option = "standard_export_options_1"
},
"fs_1" = {
path = "/mnt/test2"
export_option = "standard_export_options_2"
}
}
}
}
export_options = {
standard_export_options_1 = {
source = "100.100.179.224/28"
access = "READ_WRITE"
anonymous_gid = null
anonymous_uid = null
identity_squash = "NONE"
require_privileged_source_port = "false"
},
standard_export_options_2 = {
source = "0.0.0.0/0"
access = "READ_WRITE"
anonymous_gid = null
anonymous_uid = null
identity_squash = "NONE"
require_privileged_source_port = "false"
}
}
}
}
Thanks in advance,
Carlos
the module does not take in nsg id as an input and thats necessary to allow network traffic across subnets where instances mounting file storage are running.
the resource file_storage_mount_target has an optional parameter nsg_id which can be used to implement this.
I believe this can be done by adding the nsg_id parameter in the file main.tf below line 96 (highlighted)
could you take a look and provide a suggestion for this use case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.