Manuel Ledesma
02/03/2022, 11:14 PMKevin Kho
02/04/2022, 12:37 AMManuel Ledesma
02/04/2022, 11:49 AMif LOCALSTACK is not None:
CONFIG = botocore.config.Config(retries={'max_attempts': 0})
s3_client = boto3.client(
's3',
region_name='us-east-1',
endpoint_url=LOCALSTACK,
config=CONFIG
)
else:
s3_client = boto3.client("s3")
client_opts={"endpoint_url": '<http://local-localstack:4566>'}
flow.storage = S3(
bucket=bucket,
stored_as_script=True,
key=key,
client_options=client_opts
)