-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when logging_enabled is true #86
Comments
I was confused by this too - I found the answer at #54 . Basically you have to copy the following into your variables.tf:
Then define it in a tfvars file, then pass it into the module:
Then the label module has what it needs to construct the label. |
@sarasensible the recommended approach is to drop the file https://github.com/cloudposse/terraform-null-label/blob/main/exports%2Fcontext.tf into your module |
It's not documented but you need to provide at least the module "ec2-client-vpn" {
source = "cloudposse/ec2-client-vpn/aws"
version = "1.0.0"
name = "client-vpn-example"
...
} |
Thanks, that solved the issue for me. |
Describe the Bug
When setting var logging_enabled = true, and setting logging_stream_name with a string value, running gives this error:
Error: "name" isn't a valid log group name (alphanumeric characters, underscores, hyphens, slashes, hash signs and dots are allowed): ""
│
│ with module.vpn.module.cloudwatch_log.aws_cloudwatch_log_group.default[0],
│ on .terraform/modules/vpn.cloudwatch_log/main.tf line 17, in resource "aws_cloudwatch_log_group" "default":
│ 17: name = module.log_group_label.id
Expected Behavior
Terraform threw an error because there is no code setting the cloudwatch log group name.
Steps to Reproduce
See description.
Screenshots
No response
Environment
OS: Linux
Terraform version: 1.5.6
Module version: 1.0
Additional Context
No response
The text was updated successfully, but these errors were encountered: