Manuel Ledesma
02/03/2022, 11:14 PMKevin Kho
Manuel Ledesma
02/04/2022, 11:49 AMManuel Ledesma
02/04/2022, 11:49 AMManuel Ledesma
02/04/2022, 12:08 PMif 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")
Manuel Ledesma
02/04/2022, 12:08 PMManuel Ledesma
02/04/2022, 12:24 PMclient_opts={"endpoint_url": '<http://local-localstack:4566>'}
flow.storage = S3(
bucket=bucket,
stored_as_script=True,
key=key,
client_options=client_opts
)
Manuel Ledesma
02/04/2022, 12:24 PM