Attach Iot Policy to Iot Thing Group via CDK or cloudformation template

0

I am trying to attach an iot policy to an iot thing group, but it looks like CDK does not support it yet? Is there anyway to do this via CFN template or by creating an AWSCustomResource? I cannot find any resources or documentation on how to attach this policy via CFN either.

1 Answer
0

Hi. It's not supported by CFN and hence not supported by CDK. Relevant discussion here: https://github.com/aws/aws-cdk/issues/26166

It's therefore necessary to use an AWSCustomResource, to call the AttachPolicy API.

profile pictureAWS
EXPERT
Greg_B
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions