Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit 2aba306

Browse files
committed
Adapt the tagging lambda to the new Kubernetes tagging (kubernetes.io/cluster/{cluster_name}) instead of KubernetesCluster
1 parent 43cd1a1 commit 2aba306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/tagging_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Tag the resources ...
2323
def lambda_handler(event, context):
24-
filter = [{'Name':'tag:KubernetesCluster', 'Values':[cluster]}]
24+
filter = [{'Name':'tag:kubernetes.io/cluster/' + cluster, 'Values':['owned']}]
2525

2626
ec2 = boto3.resource('ec2', region_name=region)
2727

0 commit comments

Comments
 (0)