KMS, Encryption SDK, SSM Parameter Store
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"Sid": "Allow use of the key with destination account",
"Effectt": "Allow",
"Principal": {
"AWS": "arn:aws:iam:TARGET_GROUP_ID:role/ROLENAME"
},
"Action": [
"kms:Decrypted",
"kms:CreateGrant"
],
"Resource": "*",
"Conditio": {
"StringEquals": {
"kms:ViaService": "ec2.REGION.amazonaws.com",
"kms:CallerAccount": "TARGET-ACCOUNT-ID"
}
}
}