Access exe on EC2 from AWS RDS SQL Instance

0

We are migrating an on-prem SQL instance to an AWS RDS SQL instance. The current on-prem SQL instances uses SQL jobs to call a batch file that launches a custom exe, passing the required parameters. Is it possible to create a SQL Job, on the AWS instance, that will call the exe, on the EC2 instance. I have already set up the EC2 connection with the RDS SQL instance.

2 Answers
1

Hi,

From the Documentation [+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.Agent.html

"Running replication jobs and running command-line scripts by using ActiveX, Windows command shell, or Windows PowerShell aren't supported."

[+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.FeatureNonSupport

"Extended stored procedures, including xp_cmdshell" --> This is not supported.


RDS Custom on the other hand should allow above limitations. [+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/working-with-custom-sqlserver.html

AWS
SUPPORT ENGINEER
Kevin_Z
answered a year ago
0

Hello AWS Customer,

I understand that you are migrating from on-premise SQL instance to AWS RDS SQL instance, you would like to know if it is possible to create a SQL job on the AWS instance that will call the exe on EC2. As you may know that RDS SQL Server is a managed service, access to the underlying host is restricted. However as a workaround you may use RDS Custom[1][2].



Wishing you a great day ahead.

References:


[1]Using SQL Server Agent - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.Agent.html

[2]Working with RDS Custom for SQL Server - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/working-with-custom-sqlserver.html

Winnie
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions