INNER CODE UNIT · Python

cli

pluralsh/plural · bin/delete_eks.py:32

def cli():
    pass

@cli.command()
@click.argument('name')
def delete(name):
  client = boto3.client('eks')
  nodes_resp = client.list_nodegroups(clusterName=name, maxResults=100)
  for group in nodes_resp['nodegroups']:
    delete_nodegroup(client, name, group)
  
  delete_cluster(client, name)

@cli.command()
def list():
  client = boto3.client('eks')
  resp = client.list_clusters(maxResults=100)
  for cluster in resp['clusters']:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…