DEV Community

Adeleke Adebowale Julius
Adeleke Adebowale Julius

Posted on

How to Resolve Malfunction of EKS Cluster Turn-Off/On Tag

Issue :- I tried to turn off a preprod environment eks cluster from turnoff="false" turnoff="true" but after saving the changes, it continues to display as 'false.'

To validate this behavior, I replicated the setup in my test environment-

Selected Tags>Add new tag key: turnoff value: true
Saved the changes

Select Manage tags in console edited the value field key: turnoff value: false
After saving changes, I noticed that the value is not updated and it still shows 'true' like you observed in your clust

Resolution :-

In order to edit/update the tags, I used the Tag editor- https://us-east-1.console.aws.amazon.com/resource-groups/tag-editor/find-resources?region=us-east-1

I performed the following steps to apply the changes to the tags after opening the Tag Editor-

select the region of the cluster
select AWS::EKS::Cluster
select "Search resources"
select the checkbox of the required cluster in "Resource search results" section
select "Manage tags of selected resources"
In the "Edit tags of all selected resources" section, make the required changes and select "Review and apply tag changes"
After a couple of minutes, go back to the EKS console, select the refresh button and I saw that the "turnoff" tag was set to false or true based on if you want to turn on/off the cluster.. Let me know if you are able to make the changes using the above steps.

The current functionality of Manage Tags on AWS EKS console includes only Adding and Removing tags. Rest assured-

For now, I recommend you to use the Tag Editor service in the AWS Management Console to edit/update the tags, which provides a unified way to manage your tags

References
[1]https://us-east-1.console.aws.amazon.com/resource-groups/tag-editor/find-resources?region=us-east-1
[2]Using Tag Editor - https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-editor.html
[3] https://docs.aws.amazon.com/eks/latest/userguide/eks-using-tags.html#tag-resources

The purpose of this on/off is to save cost for example on weekend when no one using your preprod environment eks clusters.

Do not do this in production Environment

Top comments (0)