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.

已提问 2 个月前167 查看次数
2 回答
1
已接受的回答

Solution:

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

已回答 2 个月前
profile picture
专家
已审核 2 个月前
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
专家
hyp
已回答 2 个月前
  • I heard about this, but mine are existing instances.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则