Skip to content

Commit

Permalink
Change describe_parameters to get_parameters_by_path
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsqu authored Sep 29, 2023
1 parent 349fc4d commit c3e08ab
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 c3e08ab

Please sign in to comment.