How get at runtime (through FylteContext?) s3 stor...
# ask-ai
r
How get at runtime (through FylteContext?) s3 storage region specified in flyte-binary config: configuration: storage: type: "minio" metadataContainer: "flyte" userDataContainer: "flyte" provider: "s3" providerConfig: s3: region: "ru-west-1" authType: "accesskey" endpoint: myendpoint accessKey: mykey secretKey: mysecretkey ?
a
It could be possible that Flyte does not provide a direct runtime API (such as FlyteContext) to retrieve the S3 storage region from the flyte-binary config within a running task. The region is typically set in the deployment YAML (e.g., under configuration.storage.providerConfig.s3.region), and Flyte tasks access storage via environment variables or configuration files, not by querying the config at runtime. There is no mention in the data sources of a FlyteContext or similar API exposing the storage region directly to user code at runtime. Though I'm not entirely certain, it might be that you can only access the region by reading the relevant environment variable (if set) or by parsing the config file if it is mounted into the container, but this is not documented as a standard Flyte feature. Would you like more detail on possible workarounds or how storage config is typically surfaced to tasks? Sources: - https://www.union.ai/docs/v2/flyte/api-reference/flyte-sdk/packages/flyte.storage/s3/ - https://www.union.ai/docs/v2/byoc/_static/public/llms-full.txt Note: I wasn’t able to find highly relevant data sources, but above are a few potentially relevant links. 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
r
@ancient-wolf-19325 Looks like quick and dirty implementation in v1. And the good one in v2 right?