Skip to content

Commit

Permalink
Add STS arg to sns:listtopics; update cloudaux
Browse files Browse the repository at this point in the history
  • Loading branch information
castrapel committed Feb 9, 2021
1 parent 589abb6 commit c2c91e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions consoleme/celery/celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,10 @@ def cache_sns_topics_for_account(account_id: str) -> Dict[str, Union[str, int]]:
assume_role=config.get("policies.role_name"),
region=region,
read_only=True,
sts_client_kwargs=dict(
region_name=config.region,
endpoint_url=f"https://sts.{config.region}.amazonaws.com",
),
)
for topic in topics:
all_topics.add(topic["TopicArn"])
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ click==7.1.2
# click-repl
# policy-sentry
# presto-python-client
cloudaux==1.9.1
cloudaux==1.9.2
# via
# -c requirements.txt
# -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ click==7.1.2
# click-repl
# policy-sentry
# presto-python-client
cloudaux==1.9.1
cloudaux==1.9.2
# via -r requirements.in
contextlib2==0.6.0.post1
# via schema
Expand Down

0 comments on commit c2c91e1

Please sign in to comment.