title: Decryption of encrypted S3 file using aws-encryption-cli --decrypt
body: <p>I am looking for a way to decrypt an already encrypted file using <code>aws-encryption-cli --decrypt.</code> </p>
  
  <p>Is there a way I can specify the encrypted S3 object location? I am using role based decryption where the current role has permission to decrypt the object even if i do not specify the KMS key.</p>
  
  <p>I was trying to use below command:</p>
  
  <p><code>aws-encryption-cli --decrypt --input s3://XXX/encryptedfile.text  --encryption-context purpose=test --metadata-output ~/metadata --output .</code></p>
  
  <p>Could you please help if you know about encryption/decryption using <code>aws-cli</code></p>
  
  <p>Many thanks in advance</p>