I have an issue with `iotsitewise` from `@pulumi/a...
# aws
j
I have an issue with
iotsitewise
from
@pulumi/aws-native
: Here's my code:
Copy 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:
Copy code
{
    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:
Copy code
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