Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.89 KB

File metadata and controls

64 lines (49 loc) · 1.89 KB

Delete EKS resources

Description

This GitHub Action automates the deletion of EKS resources using a shell script.

Inputs

name description required default
tf-bucket

Bucket containing the resources states

true ""
tf-bucket-region

Region of the bucket containing the resources states, if not set, will fallback on AWS_REGION

false ""
max-age-hours

Maximum age of resources in hours

false 20
target

Specify an ID to destroy specific resources or "all" to destroy all resources

false all
temp-dir

Temporary directory prefix used for storing resource data during processing

false ./tmp/eks-cleanup/
module-name

Name of the module to destroy (e.g., "eks-cluster", "aurora", "opensearch"), or "all" to destroy all modules

false all

Runs

This action is a composite action.

Usage

- uses: camunda/camunda-tf-eks-module/.github/actions/eks-cleanup-resources@main
  with:
    tf-bucket:
    # Bucket containing the resources states
    #
    # Required: true
    # Default: ""

    tf-bucket-region:
    # Region of the bucket containing the resources states, if not set, will fallback on AWS_REGION
    #
    # Required: false
    # Default: ""

    max-age-hours:
    # Maximum age of resources in hours
    #
    # Required: false
    # Default: 20

    target:
    # Specify an ID to destroy specific resources or "all" to destroy all resources
    #
    # Required: false
    # Default: all

    temp-dir:
    # Temporary directory prefix used for storing resource data during processing
    #
    # Required: false
    # Default: ./tmp/eks-cleanup/

    module-name:
    # Name of the module to destroy (e.g., "eks-cluster", "aurora", "opensearch"), or "all" to destroy all modules
    #
    # Required: false
    # Default: all