Mounting EFS automatically on reboot with fstab and access point doesn't work

0

Hello.

As described in the docs, I added this in /etc/fstab:

file-system-id efs-mount-point efs _netdev,tls,accesspoint=access-point-id 0 0

Replaced fs ID, mount point and access point ID (created in EFS). I also have the mount helper installed (in /ubuntu)

When running the test: sudo mount -fav, I'm getting:

AWS Access Key ID and Secret Access Key are not found in AWS credentials file (/root/.aws/credentials), config file (/root/.aws/config), from ECS credentials relative uri, or from the instance security credentials service

What am I supposed to do? I checked the credentials and the default creds are there.

Manual creation works.

asked a month ago155 views
2 Answers
1
Accepted Answer

Solution:

Create iam user, create access key, place them in /root/.aws/credentials (config file must be there too)

answered a month ago
profile picture
EXPERT
reviewed a month ago
0

There is also a way to mount EFS when creating an EC2 instance, could you try the way? I'd like to attach the ec2 creating sceenshots.

EBS Volumes user data

AWS
EXPERT
hyp
answered a month ago
  • I heard about this, but mine are existing instances.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions