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.

posta 2 mesi fa167 visualizzazioni
2 Risposte
1
Risposta accettata

Solution:

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

con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
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
ESPERTO
hyp
con risposta 2 mesi fa
  • I heard about this, but mine are existing instances.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande