Open
Description
Describe the bug
When we set RequiresPrivilege
to true
for a component directly accessing AWS services (TES), we get expired credentials. However, it works fine if it set to false
.
To Reproduce
- Create an S3 bucket with appropriate permissions given to the Greengrass role
- Create a component (we're using nodejs) and TES as dependency which uploads a static file to the bucket (PutObjectCommand with SDK V3 js)
- In the recipe, set RequiresPrivilege to true
Expected behavior
We should get valid credentials by TES.
Actual behavior
We get an The provided token has expired
error.
Environment
- OS: Windows 10
- Nucleus version: 2.14.3
Additional context
It works as intended if RequiresPrivilege is set to false.