Skip to contentSkip to conversation

AWS S3 fetcher help

DISCUSSION [email protected] 2 participants 2 messages Nov 12, 2024 – Nov 13, 2024

lore
Share & tools
lore
#0 lore raw

I am working on adding the capability of fetching from S3 buckets. When I add the SRC_URI I can see that bitbake is using aws s3 fetcher, as it posts the command it is using to fetch. But it is unable to find credentials file. This is what I get from failure logs: 'fatal error: unable to locate credentials'. Yocto documentation does not have much help on s3 fetcher but how can I find some helpful example code to see how to pass credentials to the recipe? I have tried adding aws credentials file and then exporting it as environment variable when building like: 'AWS_CONFIG_FILE=<path-to-file>'. Would appreciate any help. Thanks so much!

#1 lore raw
Quoted 10 lines · neha.dubey via lists.openembedded.org

I am working on adding the capability of fetching from S3 buckets. When I add the SRC_URI I can see that bitbake is using aws s3 fetcher, as it posts the command it is using to fetch. But it is unable to find credentials file. This is what I get from failure
logs: 'fatal error: unable to locate credentials'. Yocto documentation does not have much help on s3 fetcher but how can I find some helpful example code to see how to pass credentials to the recipe? I have tried adding aws credentials file and then exporting it as environment variable when building like:
'AWS_CONFIG_FILE=<path-to-file>'. Would appreciate any help.

Bitbake filters the environment so you may need to tell it to preserve that variable.

You can see AWS_* variables in lib/bb/fetch2/__init__.py but AWS_CONFIG_FILE isn't one of them. Perhaps try other variables, or if you really need that specific one, you'd need to add it...

Cheers,

Richard