Skip to content

creating CloudWatch Logs Log Group (executors): ResourceAlreadyExistsException: The specified log group already exists #81

@hutson

Description

@hutson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions