Skip to content

Commit 4bd75c6

Browse files
committed
Add test for stopped CloudWatch agent
1 parent 32975ab commit 4bd75c6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/test-metrics.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
image: [ubuntu24-full-x64, ubuntu24-full-arm64]
20-
configuration: ["existing-aws-creds", "no-aws-creds"]
20+
configuration: ["existing-aws-creds", "no-aws-creds", "cw-agent-stopped"]
2121
runs-on: runs-on=${{ github.run_id }}/cpu=2/family=m7/image=${{ matrix.image }}
2222
steps:
2323
- uses: actions/checkout@v4
@@ -28,6 +28,9 @@ jobs:
2828
role-to-assume: arn:aws:iam::756351362063:role/github-oidc
2929
role-session-name: test
3030
aws-region: ${{ env.RUNS_ON_AWS_REGION }}
31+
- name: Stop CloudWatch agent
32+
if: matrix.configuration == 'cw-agent-stopped'
33+
run: sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a stop || true
3134
- uses: ./
3235
with:
3336
metrics: cpu,network,memory,disk,io

0 commit comments

Comments
 (0)