agent: | Auto Exec |
Add credentials for various integrations
What is an "Expert"? How do we create our own expert?
Managing workspaces and access control
DagKnows Architecture Overview
Setting up SSO via Azure AD for Dagknows
Enable "Auto Exec" and "Send Execution Result to LLM" in "Adjust Settings" if desired
(Optionally) Add ubuntu user to docker group and refresh group membership
Deployment of an EKS Cluster with Worker Nodes in AWS
Adding, Deleting, Listing DagKnows Proxy credentials or key-value pairs
Comprehensive AWS Security and Compliance Evaluation Workflow (SOC2 Super Runbook)
AWS EKS Version Update 1.29 to 1.30 via terraform
Instruction to allow WinRM connection
MSP Usecase: User Onboarding Azure + M365
Post a message to a Slack channel
How to debug a kafka cluster and kafka topics?
Open VPN Troubleshooting (Powershell)
Execute a simple task on the proxy
Assign the proxy role to a user
Create roles to access credentials in proxy
Install OpenVPN client on Windows laptop
Setup Kubernetes kubectl and Minikube on Ubuntu 22.04 LTS
Install Prometheus and Grafana on the minikube cluster on EC2 instance in the monitoring namespace
update the EKS versions in different clusters
AI agent session 2024-09-12T09:36:14-07:00 by Sarang Dharmapurikar
Parse EDN content and give a JSON out
Check whether a user is there on Azure AD and if the user account status is enabled
Get the input parameters of a Jenkins pipeline
Get the console output of last Jenkins job build
Get last build status for a Jenkins job
Trigger a Jenkins job with param values
Give me steps to do health checks on a Linux Server
Process Zendesk Ticket for updating comments (auto reply)
Add a public comment to a Zendesk Ticket
Identify list out IAM users list in AWS using dagknows
Restoring an AWS Redshift Cluster from a Snapshot
Filter Out Unused AWS Lambda Functions
This task involves identifying and listing AWS Lambda functions that are potentially unused based on specific criteria such as no associated CloudWatch events, no recent invocations, and absence of scheduled triggers. The aim is to help optimize AWS resources by pinpointing functions that may no longer be needed or are idle, allowing for better management and potential cost savings.
- 1Qb6YD4ENCAkJIgLiOsnZDelete AWS Lambda Functions
1
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.This task involves safely removing unused or redundant Lambda functions from an AWS account to streamline operations and reduce costs.
inputsoutputsimport boto3 from datetime import datetime, timedelta # Assuming credentials are securely fetched and stored creds = _get_creds(cred_label)['creds'] access_key = creds['username'] secret_key = creds['password'] def get_lambda_client(region): """Create a Lambda client for a specific region using provided credentials.""" return boto3.client( 'lambda', region_name=region, aws_access_key_id=access_key, aws_secret_access_key=secret_key ) def delete_lambda_function(function_name, region): """Delete a specific Lambda function in a specified region.""" lambda_client = get_lambda_client(region) try: response = lambda_client.delete_function(FunctionName=function_name) print(f"Successfully deleted {function_name} in {region}.") return response except Exception as e: print(f"Failed to delete {function_name} in {region}: {e}") def delete_unused_lambda_functions(unused_functions): """Delete unused Lambda functions from a list of function details.""" for func in unused_functions: delete_lambda_function(func['FunctionName'], func['Region']) # Example usage delete_unused_lambda_functions(unused_functions)copied1