Skip to content

Support YAML only configuration#2061

Closed
jefchien wants to merge 4 commits intomainfrom
feature/yaml
Closed

Support YAML only configuration#2061
jefchien wants to merge 4 commits intomainfrom
feature/yaml

Conversation

@jefchien
Copy link
Contributor

@jefchien jefchien commented Mar 24, 2026

Description of the issue

The CloudWatch agent added support for supplemental OTEL Collector YAML configurations as part of #1371 that could be merged with pre-existing agent JSON configurations. It still required a JSON for the agent to run.

Description of changes

Removes the JSON requirement (#2029). This allows the CloudWatch agent to be run with just OTEL Collector YAMLs.

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -c file:/tmp/config.yaml -s

Corresponding agenthealth improvements: #2039, #2059

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

https://github.com/aws/amazon-cloudwatch-agent/actions/runs/23500580900

Requirements

Before commiting your code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

Integration Tests

To run integration tests against this PR, add the ready for testing label.

@jefchien jefchien requested a review from a team as a code owner March 24, 2026 16:21
@jefchien jefchien added the ready for testing Indicates this PR is ready for integration tests to run label Mar 24, 2026
@mitali-salvi
Copy link
Contributor

Closing in favor of #2062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants