An application running on an Amazon EC2 instance needs to retrieve a database connection string stored as a SecureString parameter in AWS Systems Manager Parameter Store. The parameter is encrypted using a Customer Managed Key (CMK) in AWS Key Management Service (AWS KMS). Which TWO actions must be allowed in the IAM policy attached to the EC2 instance profile to successfully retrieve the decrypted parameter value? (Select TWO.)
- ssm:GetParameterCevap
- kms:DecryptCevap
- Ckms:GenerateDataKey
- Diam:PassRole
- Esecretsmanager:GetSecretValue
Cevap
The correct actions are ssm:GetParameter and kms:Decrypt.
To retrieve a decrypted SecureString parameter from AWS Systems Manager Parameter Store, the EC2 instance's IAM role must be allowed to perform the ssm:GetParameter action on the parameter's ARN, and the kms:Decrypt action on the KMS key used to encrypt the parameter.
Adım Adım Çözüm
Anahtar Kavram
To retrieve and decrypt a SecureString parameter from Systems Manager Parameter Store, the client needs both the read permission (ssm:GetParameter) and the decryption permission (kms:Decrypt) for the associated KMS key.