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.

demandé il y a 2 mois167 vues
2 réponses
1
Réponse acceptée

Solution:

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

répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
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
répondu il y a 2 mois
  • I heard about this, but mine are existing instances.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions