Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot disable cloudwatch agent #1737

@oradwell

Description

@oradwell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions