Skip to content

CloudWatch sink group_name can't contain templated variables during validate #10787

@archoversight

Description

@archoversight

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Vector Version

vector 0.19.0 (x86_64-unknown-linux-gnu da60b55 2021-12-28)

Vector Configuration File

[sinks.cloudwatch]
type = "aws_cloudwatch_logs"
inputs = ["*__out"]
create_missing_group = true
create_missing_stream = true
group_name = "{{ file }}"
compression = "none"
region = "us-east-1"
stream_name = "{{ host }}"
encoding.codec = "json"

Debug Output

# VECTOR_CONFIG_DIR=/etc/vector/ns2/,/etc/vector/sinks/ VECTOR_CONFIG=/etc/vector/vector.toml RUST_BACKTRACE=full vector -v validate
√ Loaded ["/etc/vector/vector.toml", "/etc/vector/ns2", "/etc/vector/sinks"]
√ Component configuration
2022-01-11T04:47:16.764139Z ERROR vector::topology::builder: msg="Healthcheck: Failed Reason." error=DescribeLogGroups failed: 1 validation error detected: Value '{{ file }}' at 'logGroupNamePrefix' failed to satisfy constraint: Member must satisfy regular expression pattern: [\.\-_/#A-Za-z0-9]+ component_kind="sink" component_type="aws_cloudwatch_logs" component_id=cloudwatch component_name=cloudwatch
x Health check for "cloudwatch" failed

Expected Behavior

vector validate should continue without issues

Actual Behavior

vector validate fails

Example Data

Not Applicable

Additional Context

Not Applicable

References

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions