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 Sep 22, 2023
1 parent 5887e5f commit 745a6b5
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 @@ -498,6 +498,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 745a6b5

Please sign in to comment.