I am looking for a way to decrypt an already encrypted file using aws-encryption-cli --decrypt.
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.
I was trying to use below command:
aws-encryption-cli --decrypt --input s3://XXX/encryptedfile.text --encryption-context purpose=test --metadata-output ~/metadata --output .
Could you please help if you know about encryption/decryption using aws-cli
Many thanks in advance