jolly-megabyte-6233
11/20/2023, 12:26 PMiotsitewise
from @pulumi/aws-native
:
Here's my code:
const accessPolicy = new iotsitewise.AccessPolicy("access-policy", {
accessPolicyPermission: "ADMINISTRATOR",
accessPolicyIdentity: {
iamRole: {
arn: role.arn,
},
},
accessPolicyResource: {
portal: {
id: portal.id,
},
},
})
Now what get's submitted by pulumi seems to be the following:
{
AccessPolicyPermission: "ADMINISTRATOR",
AccessPolicyIdentity: {
IamRole: {
Arn: ..., // <-- key is incorrectly capitalized; AWS wants lowercase "arn"
},
},
AccessPolicyResource: {
Portal: {
Id: ..., // <-- key is incorrectly capitalized; AWS wants lowercase "id"
},
},
}
At least that's what the error messages indicate:
api error ValidationException: Model validation failed (
#/AccessPolicyResource/Portal: extraneous key [Id] is not permitted
#/AccessPolicyIdentity/IamRole: extraneous key [Arn] is not permitted
)
Is there anything that can be done on my side or do I need to create the resources manually while waiting for a fix?
Cloudformation docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-accesspolicy-portal.html