I created a CI stack with json to set up the pipeline using BuildKite. My instance was on Debian AMI. However, I made a mistake. I passed a wrong value for BuildKiteQueue. Previous version was
{ "ParameterKey": "BuildKiteQueue", "ParameterValue": "kazys" },
What I want is
{ "ParameterKey": "BuildKiteQueue", "ParameterValue": "royce" },
I logged into the instance and ran these two commands to receive the log
sudo systemctl enable buildkite-agent && sudo systemctl start buildkite-agent
sudo journalctl -f -u buildkite-agent
and I got this
Successfully registered agent “ip-172-31-9-207-1” with tags [queue=kazys, arch=x86_64, distro=debian, hostname=ip-172-31-9-207.us-west-2.compute.internal]
Basically, I just wanted to change queue=royce rather than kazys. So I followed this tutorial to set up buildkite agent: Buildkite Agent Configuration v3 | Buildkite Documentation, and changed the tags value in the config. This is what my config looked like after the change:
sudo cat /etc/buildkite-agent/buildkite-agent.cfg
# If set and valid, the given tracing backend will be enabled. Eg: datadog
# tracing-backend=""
tags=queue=royce,arch=x86_64,distro=debian,hostname=ip-172-31-9-207.us-west-2.compute.internal
Then I ran this two commands again
sudo systemctl enable buildkite-agent && sudo systemctl start buildkite-agent
sudo journalctl -f -u buildkite-agent
Nothing changed at all.
[queue=kazys, arch=x86_64, distro=debian, hostname=ip-172-31-9-207.us-west-2.compute.internal]
So after I added change into config, how do I tell the buildkite agent to start with this new config?