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 个月前

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

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

回答问题的准则