Michail Melonas
05/04/2022, 12:45 PMError downloading Flow from S3: An error occurred (ExpiredToken) when calling the GetObject operation: The provided token has expired.
I’m using AWS SSO credentials to upload the flow to S3:
flow.storage = S3(
bucket=Config.PREFECT_S3_BUCKET,
client_options={
"aws_access_key_id": Config.AWS_ACCESS_KEY_ID,
"aws_secret_access_key": Config.AWS_SECRET_ACCESS_KEY,
"aws_session_token": Config.AWS_SESSION_TOKEN,
},
)
Initially, the flow runs. However, flows scheduled after the token expiry fail with the above error. How do I both use SSO to upload flows to S3 and have them scheduled on Prefect Cloud?Anna Geller
aws configure with AWS CLI on the host from which you register your flow? Do you register from your local machine, some shared VM or from CI?Michail Melonas
05/04/2022, 1:35 PMaws sso login or pasted from the SSO UI.Michail Melonas
05/04/2022, 1:36 PMAnna Geller
Michail Melonas
05/04/2022, 2:02 PMExpiredToken error.Michail Melonas
05/04/2022, 2:02 PMMichail Melonas
05/04/2022, 2:02 PMAnna Geller
Michail Melonas
05/04/2022, 2:25 PMAnna Geller
Michail Melonas
05/04/2022, 3:14 PMFlow instance such that two different sets of credentials can be used for upload/download of the flow?Anna Geller
Anna Geller
Patrick Tan
06/01/2022, 7:30 PMAnna Geller