1 Answer
- Newest
- Most votes
- Most comments
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')
}
}
?
answered 2 years ago
Relevant content
- asked 3 years ago
- asked a month ago
- asked 2 months ago
- asked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
Minor issue in the config, works now. thanks!