Skip to content

Commit

Permalink
Merge pull request #1 from mjsqu/main
Browse files Browse the repository at this point in the history
Change describe_parameters to get_parameters_by_path
  • Loading branch information
s7clarke10 authored Sep 29, 2023
2 parents 349fc4d + c3e08ab commit f91ec4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pychamber/utils/ssm_parameter_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def refresh(self):
self._keys = {}
self._substores = {}

paginator = self._client.get_paginator('describe_parameters')
paginator = self._client.get_paginator('get_parameters_by_path')
pager = paginator.paginate(
ParameterFilters=[
dict(Key="Path", Option="Recursive", Values=[self._prefix])
]
Path=self._prefix,
WithDecryption=True,
PaginationConfig={'PageSize': 10},
)

for page in pager:
Expand Down

0 comments on commit f91ec4c

Please sign in to comment.