// Name: AWS S3 Utility
// Description: Interact with AWS S3 buckets
// Author: vinaayakha
import {
S3Client,
ListBucketsCommand,
ListObjectsCommand,
GetObjectCommand,
HeadObjectCommand,
PutObjectCommand,
DeleteObjectCommand,
} from '@aws-sdk/client-s3'
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
import yaml from 'js-yaml'
import jq from 'node-jq'
/**
* Prompts the user for an environment variable if not already set, or returns the existing value.
* @param key The environment variable key.