(aws-iot):CfnPolicy fails if greengrass: actions are present #32414
Labels
@aws-cdk/aws-iot
Related to AWS IoT
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
The recommended greengrass-core-minimal-iot-policy includes greengrass: actions, but adding them using the CDK iot.CfnPolicy() fails.
Regression Issue
Last Known Working CDK Version
unknown
Expected Behavior
I expect the greengrass actions to be included in the policy. The IoT Policies created via the Greengrass.jar or the AWS SDK can include the greengrass actions without error. I've created an IoT Policy with the greengrass actions and the devices .
Current Behavior
An attempt to include the greengrass actions in the policy returned the following error on deployment.
Reproduction Steps
add the following statement in the CfnPolicy parameters
Possible Solution
I can create a Lambda construct to use the SDK to create the policy.
Additional Information/Context
When the IoT Policy does not include the greengrass actions it prevents the greengrass device enumerating and installing components as indicated in the error:
CDK CLI Version
2.172.0 (build 0f666c5)
Framework Version
No response
Node.js Version
v18.19.0
OS
Debian GNU/Linux 12 (bookworm)/BUILD_ID=20240831T094530Z
Language
TypeScript
Language Version
No response
Other information
Note: The current console also prevents addition of the greengrass actions via a GUI.
The text was updated successfully, but these errors were encountered: