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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠