Skip to content
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

Cannot disable cloudwatch agent #1737

Closed
oradwell opened this issue Feb 10, 2022 · 0 comments · Fixed by #1738
Closed

Cannot disable cloudwatch agent #1737

oradwell opened this issue Feb 10, 2022 · 0 comments · Fixed by #1738

Comments

@oradwell
Copy link
Contributor

When "enable_cloudwatch_agent" is set to "false" the runners fail to set up

Feb 10 17:03:40 user-data: Retrieved /gh-ci/runner/run-as parameter - (ec2-user)
Feb 10 17:03:40 user-data: Retrieved /gh-ci/runner/enable-cloudwatch parameter - (false)
Feb 10 17:03:40 user-data: Retrieved /gh-ci/runner/agent-mode parameter - (persistent)
Feb 10 17:03:40 user-data: Cloudwatch is enabled
Feb 10 17:03:40 user-data: ****** processing amazon-cloudwatch-agent ******
Feb 10 17:03:40 user-data: /opt/aws/amazon-cloudwatch-agent/bin/config-downloader --output-dir /opt/aws/amazon-cloudwatch-agent
/etc/amazon-cloudwatch-agent.d --download-source ssm:gh-ci-cloudwatch_agent_config_runner --mode ec2 --config /opt/aws/amazon
-cloudwatch-agent/etc/common-config.toml --multi-config default
Feb 10 17:03:40 user-data: Region: eu-west-1
Feb 10 17:03:40 user-data: credsConfig: map[]
Feb 10 17:03:40 user-data: Error in retrieving parameter store content: ParameterNotFound: 
Feb 10 17:03:40 user-data: Fail to fetch/remove json config: ParameterNotFound: 
Feb 10 17:03:40 user-data: 
Feb 10 17:03:40 user-data: Fail to fetch the config!

I know how to fix it so I'll create a PR soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant