1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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')
}
}
?
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 3 mois
- demandé il y a un an
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
Minor issue in the config, works now. thanks!