question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ssm get_parameters() module doesn's support kms key as input

See original GitHub issue

I’d like to use a kms key id (alias/key_id) when using the boto3 ssm module get_parameters(), but it doesn’t support this parameter.

http://boto3.readthedocs.io/en/latest/reference/services/ssm.html#SSM.Client.get_parameters

I’d like to help to add the feature but search the keyword get_parameter in this boto/boto3 repository, I don’t get the result, where is the file I can update?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SeanKnightcommented, Sep 11, 2019

@ozbillwang it does not go through all the KMS keys. SSM knows which key was used to encrypt the parameter and will only try that key. You can verify this by running aws ssm describe-parameters. The get_parameters function does not need a KeyId argument because it will be able to automatically use the KeyId stored on the parameter itself.

The get_parameters function also does not need a Region argument. If you need to read from multiple regions you can create multiple client objects. Example:

import boto3

virginia_ssm = boto3.client('ssm', region_name='us-east-1')
california_ssm = boto3.client('ssm', region_name='us-west-1')

print(virginia_ssm.describe_parameters())
print(california_ssm.describe_parameters())
0reactions
ozbillwangcommented, Sep 11, 2019

I am fine now, this issue can be closed.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How AWS Systems Manager Parameter Store uses AWS KMS
Parameter Store supports only symmetric KMS keys. You cannot use an asymmetric KMS key to encrypt your parameters. For help determining whether a...
Read more >
class SSM. Client - Boto3 Docs 1.26.32 documentation - AWS
A low-level client representing Amazon Simple Systems Manager (SSM) ... State Manager doesn't support running associations that use a new version of a ......
Read more >
cloudposse/ssm-iam-role/aws - Terraform Registry
Provisions a KMS key to encrypt SSM Parameter Store secrets using terraform-aws-kms-key module; Performs Kops cluster lookup to find the ...
Read more >
Mock promisified AWS service operation calls with Jest - ITNEXT
SSM and KMS play nicely together as the most of AWS services. ... with the promise key and mock the value of the...
Read more >
ssm - Go Packages
Package ssm provides the API client, operations, and parameter types for Amazon Simple ... If you change the KMS key alias for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found