Skip to content

Commit

Permalink
Merge pull request #72 from nrccua/DS-232-add-update_secret-to-ds_utils
Browse files Browse the repository at this point in the history
Add update_secret function to ds_utils
  • Loading branch information
nrccua-timr authored May 3, 2022
2 parents 6b07c55 + e752d36 commit fe39339
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ History
=======


v0.17.7 (2022-05-03)

* Add update_secret function to ds_utils.


v0.17.6 (2022-04-14)

* Remove ip parameters from ds_utils function get_ftp_connection.
Expand Down
6 changes: 6 additions & 0 deletions aioradio/ds_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def get_secret(s3_client, secret_name):
return secret


def update_secret(s3_client, secret_name, secret_value):
"""Update secret value in AWS Secrets Manager."""

return s3_client.put_secret_value(SecretId=secret_name, SecretString=secret_value)


def list_s3_objects(s3_client, s3_bucket, s3_prefix, with_attributes=False):
"""List all objects within s3 folder."""

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
long_description = fileobj.read()

setup(name='aioradio',
version='0.17.6',
version='0.17.7',
description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit fe39339

Please sign in to comment.