Module: SetAWSConfig
- Included in:
- DecisionReviewEvidenceAttachmentUploader, EVSSClaimDocumentUploaderBase, Form1010cg::PoaUploader, HCAAttachmentUploader, LighthouseDocumentUploaderBase, PreneedAttachmentUploader
- Defined in:
- app/uploaders/set_aws_config.rb
Instance Method Summary collapse
Instance Method Details
#set_aws_config(aws_access_key_id, aws_secret_access_key, region, bucket) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/uploaders/set_aws_config.rb', line 4 def set_aws_config(aws_access_key_id, aws_secret_access_key, region, bucket) self.aws_credentials = { access_key_id: aws_access_key_id, secret_access_key: aws_secret_access_key, region: } self.aws_acl = 'private' self.aws_bucket = bucket self.aws_attributes = { server_side_encryption: 'AES256' } self.class.storage = :aws end |