1 回答
- 最新
- 投票最多
- 评论最多
2
Hi andy,
From your description the S3 policy seems fine. Just to be sure, I would test the policy with the user you are trying to use. Just go to IAM -> (in the main Dashboard) Right side of the screen click in Policy Simulator -> Select the user you are trying to use -> Select the S3 bucket action you are tying to perform with that user.
About the paperclip configuration ( the one from the config folder like /config/environments/production.rb ), can you confirm you are using the following structure:
config.paperclip_defaults = {
storage: :s3,
s3_credentials => {
bucket: ENV.fetch('S3_BUCKET_NAME'),
access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'),
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY'),
s3_region: ENV.fetch('AWS_REGION')
}
}
?
已回答 2 年前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 8 个月前
Minor issue in the config, works now. thanks!