1 Answer
- Newest
- Most votes
- Most comments
4
Hello,
- Have you tried running the command directly in the terminal without using Userdata? What's the outcome?
- Are you in a private VPC, and do you use VPC endpoints? If so, you might need to allow the s3:GetObject action for this ARN:
arn:aws:s3:::al2023-repos-<AWS_REGION>-de612dc2. Here is a doc that might help
Hope this helps 😊
Relevant content
asked 3 months ago
- AWS OFFICIALUpdated 5 months ago

Hi Jordan, Thank you for your help. No the EC2 instance is actually in a public subnet and I do not have a VPC endpoint. Also yes these commands work directly in the console once the instance boots up. However my question was this script worked fine in Amazon Linux 2, it is the same configuration so I expected that to work with AL2023.
What do the dnf logs show when running the user-data script? (Check the file /var/log/dnf.log) Can you try to get more detailed logs and identify the first command that fails?