In the terraform aws provider there is only the option to enable it for all devices, but not to a specific thing group
Requested Resource(s) and/or Data Source(s)
Expand the aws_iot_logging_options resource to enable this as well, with attributes:
log-target with target that can be - THING_GROUP | CLIENT_ID | SOURCE_IP | PRINCIPAL_ID object
each log-target will contain:
name the name of the target
log-level that can be - DEBUG, INFO, ERROR, WARN
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
In AWS IOT core, there is an option to use the CLI or API using the SetV2LoggingOptions action to log the IOT devices, as you can see here: https://docs.aws.amazon.com/iot/latest/developerguide/configure-logging.html#fine-logging-cli
In the terraform aws provider there is only the option to enable it for all devices, but not to a specific thing group
Requested Resource(s) and/or Data Source(s)
Expand the aws_iot_logging_options resource to enable this as well, with attributes: log-target with target that can be - THING_GROUP | CLIENT_ID | SOURCE_IP | PRINCIPAL_ID object each log-target will contain: name the name of the target log-level that can be - DEBUG, INFO, ERROR, WARN
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None