Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ashu_j_2020
Contributor
Contributor

How to connect the AWS EC2 instance from Talend Cloud Job to execute a shell script?

We have a Talend Job which connects to an EC2 Linux instance hosted on the AWS VPC of organization and executes a shell script through tssh component. When this job is published to Talend cloud , it is not able to connect to the AWS EC2 instance on AWS of our organization. The job fails trying to connect to the EC2 instance.

How to achieve / establish this connectivity from Talend Cloud to AWS VPC ?

We are trying this on 14day's Trail subscription of Talend Cloud. And not able to find any configuration settings at Talend Cloud Management console for this.

1 Reply
Anonymous
Not applicable

Unfortunately, important information have been omitted in the question:

Among them,

Where did the Talend Cloud Task/Job has been deployed? On a Cloud engine or Remote Engine?

If the latter (Remote Engine), is it installed in the same VPC as the target EC2 instance or a different one?

 

- In both cases (Cloud Engine or Remote Engine), as you are trying to connect to the target EC2 instance through SSH you need to insure, that one of the security group(s) of this instance enable the ingress SSH port (22) (Security Group Inbound rule).

- In addition, you need to specify the list of sources (IP addresses) allowed to connect through SSH.

 In this case one of the recommended architecture will be to install the Talend Cloud Remote Engine on the same VPC as the target EC2 instance; then setup a dedicated Security Group shared among the Remote Engine EC2 instance and the Target EC2 instance where you allow the ingress SSH port for EC2 instances sharing the this same Security Group.

To install a Talend Remote Engine, in addition to manual installation, Talend provides through the AWS Marketplace dedicated AWS AMI. More information can be found here: https://aws.amazon.com/marketplace/pp/B07Q4XTGWT?ref=cns_srchrow.