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
已提問 6 個月前檢視次數 249 次
1 個回答
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
專家
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南