│ Error: creating Security Group (vpc-03b735cda1b80c124-elasticsearch): InvalidGroup.Duplicate: The security group 'vpc-03b735cda1b80c124-elasticsearch' already exists for VPC 'vpc-03b735cda1b80c124'
│ status code: 400, request id: 52842348-c664-4a74-a5d7-f854d0c26b66
│
│ with module.analytics-opensearch.aws_security_group.es[0],
│ on .terraform/modules/analytics-opensearch/main.tf line 31, in resource "aws_security_group" "es":
│ 31: resource "aws_security_group" "es" {
Hello, there is new variable default_security_group_name which represents name of default security group. You can fix this problem using this variable and setting some other value than default.
terraform apply
config