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
demandé il y a 6 mois249 vues
1 réponse
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
répondu il y a 6 mois

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