When:
randomize_resource_names = false
The following error is seen in Terraform:
│ Error: creating CloudWatch Logs Log Group (executors): ResourceAlreadyExistsException: The specified log group already exists
│
│ with module.sourcegraph-stg.module.executors-codeintel.aws_cloudwatch_log_group.syslogs,
│ on .terraform/modules/sourcegraph-stg.executors-codeintel/modules/executors/main.tf line 133, in resource "aws_cloudwatch_log_group" "syslogs":
│ 133: resource "aws_cloudwatch_log_group" "syslogs" {
I am not entirely sure how to fix this issue as the name value is intentionally hard-coded -
. It's possible to not provide a
name value and allow Terraform to create a random name, but then the log group might not work for executors -
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group#argument-reference
When:
The following error is seen in Terraform:
I am not entirely sure how to fix this issue as the
namevalue is intentionally hard-coded -terraform-aws-executors/modules/executors/main.tf
Line 135 in e979d49
namevalue and allow Terraform to create a random name, but then the log group might not work for executors - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group#argument-reference