Prerequisites
Before you create a data subscription, you need the following in the AWS account that is linked to your AWS Partner Central account:
-
An Amazon S3 bucket in the same AWS Region as your AWS KMS key. Opt-in AWS Regions aren't supported. For more information, see Creating a bucket in the Amazon S3 User Guide.
-
A customer managed AWS KMS key in the same account. AWS Partner Central encrypts every file with this key. You can't use an AWS owned key or a key from another account. Use the Amazon Resource Name (ARN) of the key,
arn:aws:kms:, not an alias ARN. For more information, see Create a KMS key in the AWS Key Management Service Developer Guide.region:account-id:key/key-id -
You can edit the bucket policy and the key policy, or an administrator can apply the policies in Bucket policy and Key policy for you.
-
IAM permissions for the data subscription actions. For more information, see Controlling access to data subscriptions.
Bucket policy
Add the following JSON policy to your bucket to let AWS Partner Central write files to the
bucket on behalf of your account. If your bucket already has a policy, add the statement to that
policy instead of replacing it. Replace
with your bucket name and
amzn-s3-demo-bucket with your AWS account ID.111122223333
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowAWSDataSubscriptionsPutObject", "Effect": "Allow", "Principal": { "Service": "datasubscriptions.partnercentral.amazonaws.com" }, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/*", "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" } } } ] }
Keep the Resource element as shown. If you name only a prefix in the policy, it
can block deliveries. You don't give AWS Partner Central permission to read, list, or delete objects.
For more information, see Adding a bucket policy by using the Amazon S3 console in the Amazon S3 User Guide.
Key policy
Add the following JSON statement to your key policy. With this statement, you let Amazon S3 encrypt
the delivered files with your key on behalf of AWS Partner Central. Replace
with the Region code,
region with your AWS account ID, and
account-id with your key ID.key-id
{ "Sid": "AllowAWSDataSubscriptionsGenerateDataKey", "Effect": "Allow", "Principal": { "Service": "datasubscriptions.partnercentral.amazonaws.com" }, "Action": "kms:GenerateDataKey", "Resource": "arn:aws:kms:region:account-id:key/key-id", "Condition": { "StringEquals": { "kms:ViaService": "s3.region.amazonaws.com" } } }
You don't give AWS Partner Central permission to decrypt your data. For more information, see Changing a key policy in the AWS Key Management Service Developer Guide.
Your bucket policy, your IAM policies, and your AWS KMS key policy determine who can access the delivered data. You are responsible for reviewing and limiting that access, both before you subscribe and on an ongoing basis afterward.