Closed arwilczek90 closed 2 years ago
I've been unable to reproduce this issue. When loading a function with aws.lambda.getFunction
or aws.lambda.getFunctionOutput
or new aws.lambda.Function("my-func-getted", {...}, { id: 'MY_ARN' })
, they all return tags.
Please could you provide any more detail or a runnable reproduction of the issue?
@danielrbradley I've done some more digging this morning and it seems it is the policies interfering with the main code's functionality. I had 2 aws based policies one that implemented @pulumi/awsguard
and one that had the latest version of this library in it. Once I disabled the one based on @pulumi/awsguard
it started working again. Looking at it the awsguard library is still using ^4.0.0 in its requirements which seems to be causing some interference. If desired I can close the issue here and reopen in the awsguard repo.
Great, thanks for the extra investigation. I'll transfer this issue over to the awsguard repository so we maintain the conversation so-far.
@arwilczek90, we've updated @pulumi/awsguard
to depend on @pulumi/aws
^5.0.0
and released a new version of @pulumi/awsguard
(0.4.0
). I'm going to close this issue, but feel free to re-open or open a new issue if you're still running into issues. Thanks!
What happened?
In typescript if you call the provider function lambda.getFunction() it will not fetch the tags for the lambda. It returns seemingly all other configuration values except for tags with 5.14.0.
Steps to reproduce
Expected Behavior
The function should return an object that has tags if tags are set.
Actual Behavior
The function returns a result with an empty 'tags' object.
Output of
pulumi about
pulumi package versions from monorepo yarn.lock > @pulumi/aws@5.14.0 @pulumi/pulumi@3.40.1
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).