I am trying to use the AWS provider aws_fis_experiment_template resource and configure the cloudwatch_logs_configuration option. FIS requires the log group to be named as /aws/fis/ and there are no options in this. If I try to use a different name, the apply fails with an error from AWS.
if I define a log_group resource and try to name it using the aws_fis_experiment_template.id and define use the log_group ARN attribute in the log_group_arn parameter of the aws_fis_experiment_template, I get a Cycle error during the validate stage for Terraform.
The log group name needs the experiment template ID, but the creation of the experiment template creation requires the log group to be configured properly with the experiment template ID as part of the name. Catch-22, Circular Reference.
So, how do I do it in Terraform? What do I need to set in my code? I cannot find ANY examples online.
I am using Terraform 1.10.4 with aws module version 5.83.1.