/ack-tag-tool

Simple tool to tag all Alibaba Cloud resources used in specific ACK K8s cluster.

Primary LanguagePythonApache License 2.0Apache-2.0

ACK Tag Tool

Tag all Alibaba Cloud resources used in specific ACK Kubernetes cluster

Setup

pip3 install -r requirements.txt

Usage

Set environment variables for AK

export ACCESS_KEY_ID=xxxxxx
export ACCESS_KEY_SECRET=xxxxxx

Check resource tag for specific ACK K8s cluster

python3 main.py  --cluster_id=xxxxxx --region=cn-beijing --key=test-key --value=test-value

Tag resource for specific ACK K8s cluster

python3 main.py  --cluster_id=xxxxxx --region=cn-beijing --key=test-key --value=test-value -s

Untag resource for specific ACK K8s cluster

python3 main.py  --cluster_id=xxxxxx --region=cn-beijing --key=test-key -s -u