aws / efs-utils

Utilities for Amazon Elastic File System (EFS)
MIT License
291 stars 187 forks source link

Invalid file system name #5

Closed mims92 closed 6 years ago

mims92 commented 6 years ago

Hello,

I've created an Encrypted EFS and I want to mount it on a Debian Instance using TLS.

I followed the build deb package and installed it successfully (amazon-efs-utils-1.2-1.deb)

Now I'm stuck on mounting the EFS...

Here is my efs-utils.conf file:

#
# Copyright 2017-2018 Amazon.com, Inc. and its affiliates. All Rights Reserved.
#
# Licensed under the MIT License. See the LICENSE accompanying this file
# for the specific language governing permissions and limitations under
# the License.
#

[DEFAULT]
logging_level = INFO
logging_max_bytes = 1048576
logging_file_count = 10

[mount]
dns_name_format = fs-******.efs.*****.amazonaws.com
stunnel_debug_enabled = true

# Validate the certificate hostname on mount. This option is not supported by certain stunnel versions.
stunnel_check_cert_hostname = true

# Use OCSP to check certificate validity. This option is not supported by certain stunnel versions.
stunnel_check_cert_validity = true

# Define the port range that the TLS tunnel will choose from
port_range_lower_bound = 20049
port_range_upper_bound = 20449

[mount-watchdog]
enabled = true
poll_interval_sec = 1
unmount_grace_period_sec = 30

Here is the content of the /etc/fstab:

fs-******.efs.*****.amazonaws.com:/ /mnt/Encrypted-NAS efs defaults,_netdev,tls 0 0

Running

mount -a

results in

Invalid file system name: fs-******.efs.*****.amazonaws.com:/ 
ERROR:root:Invalid file system name: fs-******.efs.*****.amazonaws.com:/ 

Could you help me please?

Thank you

mims92 commented 6 years ago

dns_name_format is not a variable which has to be edited...