(integ-tests-alpha): ForbiddenException: UnknownError
when using awsApiCall('IotData', 'publish', ...)
#26645
Labels
@aws-cdk/aws-iot
Related to AWS IoT
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
ForbiddenException: UnknownError
occurs when usingawsApiCall('IotData', 'publish', ...)
.Expected Behavior
Publish without error.
Current Behavior
It causes a CFn error as following;
At this time, the following error occurs in Lambda;
Reproduction Steps
Use
IntegTest
as follofing;Possible Solution
It can be fixed changing the
prefix
ofIotData
insdk-api-metadata.json
toiot
instead ofiot-data
.aws-cdk/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/sdk-api-metadata.json
Line 266 in 972a06f
This json file is used for setting an action of a policy of CustomResource;
aws-cdk/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/provider.ts
Lines 159 to 172 in c8258a6
From the document, all commands of
IotData
are below;All policy actions of these command need
iot
prefix notiot-data
. It can be confirmed with this documentation.Additional Information/Context
No response
CDK CLI Version
v2.90.0 (git hash
972a06f07e861fcd71b2ebb6ca72a72c97bda0d9
)Framework Version
No response
Node.js Version
v20.4.0
OS
mac m1
Language
Typescript
Language Version
v1.22.19
Other information
No response
The text was updated successfully, but these errors were encountered: