I want to use Lightsail to but it doesn't seem to allow uploads to S3 buckets

1

Hi all,

Like the subject says, I'm trying to write a NodeJS app and deploying using Lightsail and one of the features requires the user uploading a large file to an S3 bucket. I'm trying to use the AWS SDK API to do this but I need API access keys. When i tried to get API access keys, AWS tells me that these are only good for "AWS compute service like Amazon EC2, Amazon ECS, or AWS Lambda to access your AWS account." Is it just not good practice to use Lightsail in this way? My app is a very simple service that is just upload a file, process it, then return results. Thank you for any help or guideance.

Gableo
asked 6 months ago231 views
1 Answer
1

Hello.

Normally, EC2 etc. use IAM roles to access S3, so there is no need to issue an access key.
In the case of Lightsail, you cannot set an IAM role, so you need to issue an access key from an IAM user.
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-wordpress-to-amazon-s3#create-iam-user-and-policy-for-wordpress

profile picture
EXPERT
answered 6 months ago

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