Closed ZeroDeth closed 1 year ago
Tried creating a new resource:
resource "aws_cloudwatch_log_group" "client_vpn_cw" {
name = "endpoint"
tags = local.tags_vpn
}
resource "aws_cloudwatch_log_stream" "client_vpn_stream" {
name = "vpn"
log_group_name = aws_cloudwatch_log_group.client_vpn_cw.name
}
Still cannot enable logging even if created new stream:
logging_stream_name = aws_cloudwatch_log_stream.client_vpn_stream.name
The Cloud Posse modules assume use of context.tf (which means namespace, stage, name, etc variables will normally be defined) so in this case, module "log_group_label" has nothing set.
You can set variables namespace, stage, name etc or you can use context.tf or the null-label module in your own project and set them there, then pass the module reference into module "ec2_client_vpn" via the context variable.
The example shows how to use context.tf.
Found a bug? Maybe our Slack Community can help.
Describe the Bug
A clear and concise description of what the bug is.
Terraform complain when enable logging
Expected Behavior
A clear and concise description of what you expected to happen.
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
Additional Context
Add any other context about the problem here.