AWS S3 fetcher help
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!
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_URII 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