The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
11.68k
stars
3.93k
forks
source link
(integ-tests-alpha): `ForbiddenException: UnknownError` when using `awsApiCall('IotData', 'publish', ...)` #26645
Open
yamatatsu opened 1 year ago
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
. https://github.com/aws/aws-cdk/blob/972a06f07e861fcd71b2ebb6ca72a72c97bda0d9/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/sdk-api-metadata.json#L266This json file is used for setting an action of a policy of CustomResource; https://github.com/aws/aws-cdk/blob/c8258a6a6976da51e1096bef7e2e84bdc89a71c5/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/provider.ts#L159-L172
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