Method: Formatron::AWS#upload_file

Defined in:
lib/formatron/aws.rb

#upload_file(kms_key:, bucket:, key:, content:) ⇒ Object



71
72
73
74
75
76
77
78
79
# File 'lib/formatron/aws.rb', line 71

def upload_file(kms_key:, bucket:, key:, content:)
  @s3_client.put_object(
    bucket: bucket,
    key: key,
    body: content,
    server_side_encryption: 'aws:kms',
    ssekms_key_id: kms_key
  )
end