From 745a6b58a8e9c891ec7f6397d409aeb754552266 Mon Sep 17 00:00:00 2001 From: Andrej Podhradsky Date: Fri, 22 Sep 2023 14:51:53 +0200 Subject: [PATCH] Add s3 client 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 --- wrapanapi/systems/ec2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wrapanapi/systems/ec2.py b/wrapanapi/systems/ec2.py index f8ec74b9..dc35d909 100644 --- a/wrapanapi/systems/ec2.py +++ b/wrapanapi/systems/ec2.py @@ -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)