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
05/04/2022, 1:01 PMaws 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.Anna Geller
05/04/2022, 1:49 PMMichail Melonas
05/04/2022, 2:02 PMExpiredToken
error.Anna Geller
05/04/2022, 2:20 PMMichail Melonas
05/04/2022, 2:25 PMAnna Geller
05/04/2022, 3:09 PMMichail 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
05/04/2022, 3:48 PMPatrick Tan
06/01/2022, 7:30 PMAnna Geller
06/01/2022, 7:54 PM