Skip to content

A scheduled lambda ,with a Slack notification integration, to a simulate a SQL Server agent task across multiple SQL Server RDS instances

License

Notifications You must be signed in to change notification settings

drexler/agent-x

Repository files navigation

Agent-X

SQL Server on Amazon RDS currently supports SQL Server Agent on the Web, Enterprise and Standard editions. Thus, for situations where there is the need for the agent, clients are presented with the option of upgrading to a more pricier edition of the database to maintain parity with the existing installation or reworking their database tier logic to handle it. However, it is possible rewrite SQL Server Agent job as a Serverless function and this is what Agent-X attempts to show.

Prerequisites
Usage
  • Update the development.serverless.variables.json file with the relevant AWS resource IDs and the Slack Webhook URL
  • Commands:
    • Install dependencies: npm install
    • Deployment: sls deploy --variables development.serverless.variables.json
    • Removal: sls remove --variables development.serverless.variables.json

Note: When removing a deployment of Agent-X in an existing custom VPC using the sls remove command, it sometimes hangs - refer to: serverless/serverless#5252 .The workaround is for the user to log into the AWS Console to manually detach and delete the Elastic Network Interface associated with the deployed lambda

Slack Integration

Out-of-the-box support for Slack integration provides for error reporting in cases of errors with RDS instances, databases, or executed queries.

agent-x-rds-instance-error agent-x-database-error agent-x-query-execution-error agent-x-success

About

A scheduled lambda ,with a Slack notification integration, to a simulate a SQL Server agent task across multiple SQL Server RDS instances

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages