Hello good morning, please l am trying to ensure my tracing config for lambda functions is set to either PassThrough or Active. However l get this error for unsupported type for looping string" prior to this l had an error for unsupported typed for looping list and was able to find a prior discussion with this play ground Sentinel Playground which l tried to use same logic but got this later error. Here is my own playground Sentinel Playground
Hi f.nkeng
I made a few changes and have a policy that I think will work for you. See this playground link : Sentinel Playground
This policy will allow for both PassThrough and Active as your print message indicated.
thank you @dillon.doxey. I would test this out and l am sure this would work. May l ask if there is another function l can use as opposed to the ! as l have used this in one of my previous policy which causes the policy to pass the specific module but fails all other modules. Thanks
as l have used this in one of my previous policy which causes the policy to pass the specific module but fails all other modules. Thanks
I don’t believe this will be related to the != operator. If I understand you correctly; it’s more likely that the previous policy either was not filtering resources as intended, or policy application to workspaces needs to be revisited.
If you have other lambda resources that you do not want this policy to protect you may need to put those other resources in a different workspace in TFC/TFE so that the policy is not applied or find a way to filter those resources so that they are not included in this policy.
Okay l tried running the policy but doesn’t seem to be picking up the actual value it just picks up an empty map despite the fact that it is set to PassThrough. Hence it is still failing on my end
Update l was able to modify it to suit my best use case and the logic you provided helped a lot. Thank you @dillon.doxey