Skip to content

Commit

Permalink
Add s3 client
Browse files Browse the repository at this point in the history
This is needed to obtain bucket's creation time as follows

    s3_client.get_bucket_tagging(Bucket=bucket.name)

In the future, it might be replaced by resourcegroupstaggingapi

Signed-off-by: Andrej Podhradsky <apodhrad@redhat.com>
  • Loading branch information
apodhrad committed Oct 24, 2023
1 parent 3c6561c commit f6a3592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wrapanapi/systems/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ def __init__(self, **kwargs):
self.sqs_connection = boto3client("sqs", **connection_kwargs)
self.elb_connection = boto3client("elb", **connection_kwargs)
self.s3_connection = boto3resource("s3", **connection_kwargs)
self.s3_client = boto3client("s3", **connection_kwargs)
self.ec2_connection = boto3client("ec2", **connection_kwargs)
self.ec2_resource = boto3resource("ec2", **connection_kwargs)
self.ecr_connection = boto3client("ecr", **connection_kwargs)
Expand Down

0 comments on commit f6a3592

Please sign in to comment.