Replies: 1 comment 1 reply
-
|
There is no AWS CLI command that can retrieve the KMS key ID used by an SSM SecureString parameter. This is by design. For SecureString parameters, SSM stores the KMS key association internally, but the That is why you can see the key in the AWS Console, but not via the CLI or API. What you can do instead: If you need to enforce or audit which key is used, manage it at creation time: aws ssm put-parameter If you need visibility for auditing/compliance, use CloudTrail. Parameter creation and updates include the KMS key used in the event record, which is the only API-level source of truth for this information. Alternatively, enforce usage via IAM policies (for example, require a specific KMS key for Summary:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a command that will retrieve the key id? The info is available in console, but could not find it through cli.
Beta Was this translation helpful? Give feedback.
All reactions