<p>Depending on your use-case, you should look either:</p>

<ul>
<li><p>Establishing a persistent VPN connection to the AWS VPC using the Site-To-Site VPN as described here: <a href="https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html</a> </p></li>
<li><p>Using an OpenVPN client via the build jobs using the client VPN service as  described here <a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/what-is.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/what-is.html</a></p></li>
</ul>

CC BY-SA 4.0
2019-10-31T11:37:31.840Z
2019-10-31T11:37:31.840Z
M_dk
<p>We are trying to automate the deployment process for our application, our application has two components (one hosted on DC, one hosted on AWS). 
Now, we are not sure how do we connect the jenkins from our DC to the AWS environment hosted servers using VPN or is there any way by which the connection can be established.</p>

<p>P.S: We cannot install a new jenkins in the EC2 instance directly and do the deployment there, as we would need to pull the source code for the build to the cloud layer which is not acceptable by our compliance team.</p>

CC BY-SA 4.0
2019-10-31T07:57:28.880Z
If you're using a VPN in AWS, does your build environment have a route to it? Can you be a bit more specific in the kind of errors you're having?
Bruce Becker
CC BY-SA 4.0
2019-10-31T08:02:34.213Z
Thanks @BruceBecker for the comment, we are searching how to establish a route to it. Am looking for options on the ways to connect to AWS servers using VPN from the Build server
Dipak Gunasekaran
<jenkins><amazon-web-services><vpn>
DC Jenkins server to AWS servers connection
Dipak Gunasekaran
# DC Jenkins server to AWS servers connection

(Asked by: username_0 on 2019-10-31)

We are trying to automate the deployment process for our application, our application has two components (one hosted on DC, one hosted on AWS).
Now, we are not sure how do we connect the jenkins from our DC to the AWS environment hosted servers using VPN or is there any way by which the connection can be established.

P.S: We cannot install a new jenkins in the EC2 instance directly and do the deployment there, as we would need to pull the source code for the build to the cloud layer which is not acceptable by our compliance team.

**Tags:** jenkins, amazon-web-services, vpn

> **Comments:**
> **username_1**: If you're using a VPN in AWS, does your build environment have a route to it? Can you be a bit more specific in the kind of errors you're having?  
> **username_0**: Thanks @BruceBecker for the comment, we are searching how to establish a route to it. Am looking for options on the ways to connect to AWS servers using VPN from the Build server  

---

## 1 answers

### Answer by username_2 on 2019-10-31. Score: 3

Depending on your use-case, you should look either:

* Establishing a persistent VPN connection to the AWS VPC using the Site-To-Site VPN as described here: <https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html>
* Using an OpenVPN client via the build jobs using the client VPN service as described here <https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/what-is.html>


---

