hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.64k stars 9.01k forks source link

[New Resource]: AWS IOT core, resource of logging per specific thing group #35537

Open uriya222 opened 5 months ago

uriya222 commented 5 months ago

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

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue