Using your example as base code I modified it slightly to add a thing into the group:
let a_s = new iot.CfnThing(this, 'a_sensor', {
thingName: 'MyThingSensor',
})
let a_group = new gg.Group(this, 'a_group', {
core: new gg.Core(this, 'a_core', {
thing: a_t,
syncShadow: true,
certificateArn: props.certificateArnCore
}),
devices: [new gg.Device(this, 'a_sensor_device', {
thing: a_s,
syncShadow: false,
certificateArn: props.certificateArnSensor
})],
functions: [gg_lambda],
subscriptions: subscriptions,
loggers: [localLogger],
resources: [tmp_folder]
})
Unfortunately this fails with the following error during deployment:
AwsBlueprintIotStack failed: ValidationError: Template error: resource asensor does not support attribute type arn in Fn::GetAtt
Template error: resource asensor does not support attribute type arn in Fn::GetAtt
After looking into CF template output I noticed the following:
If you look at the ThingArn it tries to use GetAtt which indeed does not exist. Analyzing the same block of code for the thing that is associated to GG Core, it generated the ARN diffferenly:
Using your example as base code I modified it slightly to add a thing into the group:
Unfortunately this fails with the following error during deployment:
After looking into CF template output I noticed the following:
If you look at the ThingArn it tries to use GetAtt which indeed does not exist. Analyzing the same block of code for the thing that is associated to GG Core, it generated the ARN diffferenly:
And this works. My question is, is this CDK related or related to your CDK constructs? Regards, Nikolai