Currently i have created a process group which would get the events from SQS via getSQS processor and retrieve the S3 data from fetchS3Object processor.
But now data is encrypted
before placing in S3 and my Nifi need to decrypt the file collected using an AWS key which would be changing
every 3 month so it should refresh the key by making an API call to AWS KMS.
I didn't find any document to encounter this scenario. Please share some hint or processor which could handle this situation.
Adding few more details to the query as in the current scenario , the data is encrypted using AWS KMS-Managed Keys (SSE-KMS) only using client side encryption. The client (Nifi) need to download the encrypted object from Amazon S3 along with the cipher blob version of the data encryption key stored as object metadata. The client then sends the cipher blob to AWS KMS to get the plain-text version of the key so that it can decrypt the object data.
Please have a look to the option 1 of the below link: