AWS KMS Multi region

Using AWS KMS Encryption SDK - MultipleProviderFactory, multiple CMKs from different region can be combined to single master key provider, the first CMK is used to generate data key, other CMKs...

Using python AWS sdk (boto3), how to decrypt an email that was saved by ses

My setup is this: using AWS, I have an SES rule that saves incoming emails on an s3 bucket with encryption. When I am using java sdk to read, its read with no problem ,using this example When...

Can you use AES encryption on client and KMS encryption on server because KMS uses AES?

I need to encrypt some text strings using keys on client side and then decrypt this encrypted string on server side using the same key used for encryption on client side. So the way I understand...

vendor folder is not present in my docker image

I'm trying to build a deployable image of my laravel app into docker. Here is my dockerfile: FROM php:7.1.14-fpm ENV node_version 8.4.0 ENV npm_version 5.7.1 RUN echo "deb...

AWS Lambda and RDS working example (need it to work with Sequelize)

Here's a working example of AWS Lambda and MySQL, but I'd like it to work with Sequelize. How do I initialize Sequelize to work with AWS Lambda? I have the authenticated IAM role working...

NiFi v1.7.1 : java.lang.reflect.InvocationTargetException:null Error for custom processor

I have created a Custom processor to use AWS Encryption SDK as a separate processor in NiFi version 1.7.1 I have implemented Abstract class with required Properties and createClient functions and...

AWS KMS Encryption - Limits of Data Size

I am trying to encrypt a large XML payload using AWS KMS Encryption SDK. I came across this link which states that there is a limit on bytes of data that can be encrypted You can encrypt up to 4...

putObject via presigned url on encrypted S3 bucket returns signature does not match

I have serverless aws lambda that will get/put object onto encrypted S3 buckets via presigned urls. getObject works perfectly. putObject generates SignatureDoesNotMatch error once I encrypt the...

Upload to AWS S3 with createPresignedPost -- file either invisible in S3 or Policy Condition failed

Trying to upload to AWS S3 using createPresignedPost approach, but either the seemingly uploaded file is invisible or not showing in S3 bucket or "Policy Condition failed" error returned. Need to...

How can I upload a file to S3 via Powershell with AES256 encryption without installing AWS SDK?

I want to upload a file to AWS S3 with AES256 encryption however I am not allowed to install the AWS CLI. I have the code below which allows me to upload files to S3 using my secret keys however...

How do you access S3 Bucket protected by an IAM role using the Java SDK?

I have a S3 Bucket setup in AWS which is proteced by an IAM Role. I am writing an application which should access that bucket. The application deployed to an EKS cluster and gets the role via a...

Retrieve List of AWS Config Rule Names using AWS Golang SDK

AWS Config has a set of Managed Rules and I am trying to use the Golang AWS SDK to use the DescribeConfigRules API to retrieve the list of AWS Config Managed Rule Names and other details. It seems...

AWS Encryption in React Native

I am in the middle of developing an app in React Native. What I am going to do is to encrypt Token coming from the third party using AWS Encryption and send encrypted Token to the server using the...

"EC2 Metadata roleName request returned error" using aws encryption library with NestJS

I am trying to use aws encryption sdk in a NestJS application, the next code source shows the implementation. import { Controller, Get } from '@nestjs/common'; import {KmsKeyringNode, encrypt}...

AWS Java SDK SSL Certificates

I have a JBoss AS7 connecting to AWS and specifically to S3 over the AWS SDK for Java, I have the access and secret keys, and everything runs fine. I use the S3 for various file sharing. The...

How do I use Public Key Encryption with the AWS Encryption SDK in Python?

I'm a bit out to sea on this one, so I was wondering whether anyone could help. Does anyone know how to use Public Key encryption/decryption, using RSA keys in PEM format? I can get it to work if...

How to store my key for encryption on aws?

I am developing rest api system running on ec2 service. My requirement is encrypt/decrypt on plain text with AES256 generate key with pbkdf2 Store key on aws cloud system Java I tried to used...

Why am I getting different bytes every time I encrypt with AWS KMS CMK?

I am trying to encrypt my sensitive data like user email address to the database using aws kms cmk. I am using aws SDK in java. I have encrypted the field and stored in data base. I can also...

Spring boot with KMS

My Spring boot microservice is running in a docker container. It requires an encryption key for encrypting the incoming payload. I thought of using AWS KMS for storing the keys. Reading them at...

The encryption method specified is not supported error when writing to s3 from spark job using Hadoop s3a

I am trying to write to s3 bucket which is KMS Server-side encrypted with a spark job running on an emr cluster. I am passing these configs with spark-submit...

SSLException from AwsSDK S3AsyncClient GetObjectRequest

I am using a software.amazon.awssdk.services.s3.model.GetObjectRequest to retrieve an object in a S3AsyncClient getObject method call from an enterprise S3 instance that emulates AWS S3...

Multi region strategy for KMS

I am trying to implement a multi region strategy for my lambdas which use dynamodb global tables. I want to use KMS to do client side encryption for the userId and pin. How can I implement a multi...

Pyspark read all JSON files from a subdirectory of S3 bucket

I am trying to read JSON files from a subdirectory called world from a S3 bucket named hello. When I list all the objects of that directory using boto3, I can see several part files(which were...

Pyspark org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body

I am trying to read JSON files from a subdirectory called world from a S3 bucket named hello. When I list all the objects of that directory using boto3, I can see several part files(which were...

AWS S3 Java SDK - Downloading an encrypted GetObject by Stream of a Selling Partner (SP) API url

I started using SellingPartner (SP) recently and I am kind confused how they provide us S3 reports to download. When I fetch a Report Document from SP API I get this return...

Decrypt cypherTextBlob using AWS KMS programmatically in Java ? InvalidCiphertextException

I am a bit new to cryptography and never used AWS KMS to encrypt data before. I am using AWS SDK for Java for KMS. But while trying to encrypt and decrypt using AWS KMS API Operations, I am facing...

How to enable KMS encryption for AWS ECR when using CloudFormation templates

Reading the AWS documentation regarding ECR CloudFormation template: See here. I've not been able to find how to specify the encryption at rest you want. I know by default it uses AES-256. But I...

Composer 2.0.8 issue package-versions-deprecated

Using php 7.2 - Installing composer/package-versions-deprecated (1.8.0): Extracting archive ...

How can I properly mimic this encryption method to produce the proper value for the encryptedPwd field?

Background I'm needing to pull reports from Amazon's Seller Central portal for multiple clients of ours on a weekly basis via a python script. I try to avoid webdrivers due to their inconsistent,...

Building the AWS SDK from source on Amazon Linux 2

I am trying to follow up suggestion from aws-lamba-cpp to reduce complexity in building my application. If you choose to build on the same Amazon Linux version used by lambda, you can avoid...