<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Michael McDonnell on Medium]]></title>
        <description><![CDATA[Stories by Michael McDonnell on Medium]]></description>
        <link>https://medium.com/@mcdonnell-the-mule?source=rss-cc9e7871b386------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Uzuq2hYYOPs6Xrqn</url>
            <title>Stories by Michael McDonnell on Medium</title>
            <link>https://medium.com/@mcdonnell-the-mule?source=rss-cc9e7871b386------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:31:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mcdonnell-the-mule/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Secure your data and integrations with Salesforce with Private Connect]]></title>
            <link>https://medium.com/another-integration-blog/secure-your-data-and-integrations-with-salesforce-with-private-connect-b1d8a3a4a837?source=rss-cc9e7871b386------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1d8a3a4a837</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloudhub]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Michael McDonnell]]></dc:creator>
            <pubDate>Thu, 06 Jul 2023 14:28:03 GMT</pubDate>
            <atom:updated>2023-07-06T14:28:03.413Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Co-Author — </em><a href="https://ruebenjimenez.medium.com/"><em>https://medium.com/</em></a><em>@</em><a href="https://ruebenjimenez.medium.com/"><em>ruebenjimenez</em></a></p><p>Keeping data private is an essential part of a Zero-Trust Architecture in the modern era. Information is a commodity that needs to be kept private to protect customers, partners, your own company, and employees. MuleSoft’s integrations with AWS and Salesforce make it easy to secure your traffic in transit and prevent publicly exposed communication over the internet.</p><p>Connecting to Salesforce from MuleSoft is a well-defined process these days. <a href="https://www.mulesoft.com/exchange/?search=salesforce&amp;type=connector&amp;type=extension&amp;status=published&amp;sort=score">MuleSoft’s suite of Salesforce Connectors</a> allows you to leverage Salesforce to solve your business needs without focusing on your underlying technology implementation.</p><p><a href="https://help.salesforce.com/s/articleView?id=sf.private_connect_overview.htm&amp;language=en_US&amp;type=5">Salesforce Private Connect</a> is a feature that allows customers to establish a private and secure network connection between their network and Salesforce’s cloud-based services. It is a private tunnel that connects your network directly to your Salesforce applications. Instead of using the internet to access Salesforce’s services, you can establish a direct connection through a private network link.</p><p>In this article, we will specifically focus on setting up an Inbound Connection to Salesforce from MuleSoft’s CloudHub 2.0.</p><p>This example will specifically be utilizing <a href="https://aws.amazon.com/route53/">AWS Route 53</a> for DNS management and traffic routing.</p><h3>Architecture</h3><p>We will <strong>start</strong> with the following architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E08JG_xzIGkbXkphNgnnbw.png" /></figure><p><strong>Assumptions (configuration)</strong></p><ul><li>You have a MuleSoft Private Space in US-East-1 with CIDR 172.16.0.0/24</li><li>You have an AWS VPC in US-East-1 with CIDR 172.31.0.0/24</li><li>You have attached both the Private Space and the VPC to a common Transit Gateway</li><li>You have validated routes in both directions.</li><li>You have Salesforce and a Salesforce API in your Private Space</li></ul><p>Our goal is to have<strong> </strong>a final architecture and network flow to avoid the internet when connecting to Salesforce:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4lnMNsOYHa9qpeEFIbquvw.png" /></figure><h3>Private Connect Inbound Setup</h3><p>Start within your Salesforce Setup and search for <strong>Private Connect</strong> in the Quick Find box and expand the <strong>AWS Regions</strong> section. Copy the <strong>Service Name</strong> for your region (US-East-1) and set it to the side for the moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzjdigXtNoQEnQkvjTxQgg.png" /></figure><p>In AWS, go to the <a href="https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#Endpoints:">VPC Endpoints</a> page and click Create Endpoint</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*yK7C3hCXIWjxvWYFNdZYwg.png" /></figure><p>In the Endpoint Creation Wizard give your new endpoint a descriptive name; I used <strong>private-connect-demo-vpce</strong>. Select <strong>PrivateLink Ready partner services</strong>, and paste in the <strong>Service Name</strong> from the Private Connect Inbound Setup above. Click <strong>Verify Service</strong> to move on to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eu4-245OcKDysATnHSqQ2A.png" /></figure><p>After you have verified your <strong>Service name</strong>, next select the VPC and Subnets you’d like to make sure that your Private Connect link will be established. It’s recommended to have at least 2 subnets for failover purposes. In this example, I created 3 subnets that only support IPv4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aff-eHb861W2zmN6YtnN9w.png" /></figure><p>Finally, establish your security group to be used between your VPC and Salesforce. In this example I used the default group as all of my communication will be exclusively for Private Connect and the security rules are simpler. Your mileage will vary in your implementation. Click <strong>Create Endpoint</strong> to create your VPC Endpoint for Private Connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpttfZX50ue3fHdPPL5WQQ.png" /></figure><p>The next screen will show you your VPC Endpoint ID with a Status <strong>Pending</strong>. Copy the <strong>Endpoint ID</strong> and set it to the side for the moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2TSXD6V-4j3-YULo9uFCQ.png" /></figure><p>Go back to your Salesforce Setup for Private Connect and click on <strong>Create Inbound Connection</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVs2QcsXOCORBbMrl0gYZQ.png" /></figure><p>If it’s not already selected; Select the <strong>AWS PrivateLink</strong> option and click <strong>Next</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xhCnbgP4Ujnf2Q2KoJsUvA.png" /></figure><p>On the second page of the wizard, you will configure your <strong>Connection Name</strong>, give a <strong>Description</strong>, apply the previously saved <strong>VPC Endpoint ID</strong> and fill in your <strong>Region</strong>. In this example, I named my connection name <strong>private_connect_demo_inbound</strong> and connected it to my <strong>US-East-1</strong> region. Make sure “<strong>Yes, I would like to provision my connection now.</strong>” is selected and click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UNzrbWvslgC_kaujOeT4g.png" /></figure><p>As soon as you’re done creating the Inbound Connection — click the down arrow under <strong>Actions</strong> and click <strong>Sync</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*dvqLsPTQbbMalRJM-bGezw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*hHnxC2VlDQQmpzO0260MQw.png" /></figure><p>When you go back to AWS to review your VPC Endpoint a refresh will show you its Status is now changed from Pending to <strong>Available</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQVPDZKogRbFDSSoCwzUuQ.png" /></figure><p>Congratulations! At this point, you have successfully configured your Private Connect Inbound Connection! Next, let’s make it usable!</p><h3><strong>DNS Configuration in Route 53</strong></h3><p>In this section, our goal will be to set up a CNAME for our VPC Endpoint and configure our CloudHub Private Space to point to our Route 53 Resolver.</p><p>On the right-hand side of the VPC Endpoint details screen you will see I have 4 DNS names for my VPC Endpoint. The top endpoint is the primary record for the VPC endpoint. Each successive record is for a given subnet. Be sure to take that top <strong>DNS names</strong> record and copy it. Set it aside for the time being.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*t2ddRqixTqJkreBXJKTasw.png" /></figure><p>We can validate that the top record is the primary by performing a <a href="https://linux.die.net/man/1/nslookup">nslookup</a> on the top record and seeing all 3 subnet IPs returned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWZLwrdtxzdxNsvEV0WT7Q.png" /></figure><p>To configure your Private Hosted Zone in Route 53, start by clicking <strong>Create Hosted Zone</strong> on the <a href="https://us-east-1.console.aws.amazon.com/route53/v2/hostedzones">Route 53 Hosted Zone</a> page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSCBfQkhAyoJNL4807L5rw.png" /></figure><p>Give your hosted zone the <strong>Domain name: my.salesforce.com</strong> and be sure to set your <strong>Type</strong> to <strong>Private hosted zone</strong>. <em>Failure to set your Type to Private may result in problems for your deployment.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-QxO1NX7PGykgnm_dXhsw.png" /></figure><p>Set the <strong>Region</strong> and <strong>VPC ID</strong> to associate with your hosted zone to be <strong>the same Region and VPC</strong> as the VPC you configured for your VPC Endpoint for Private Connect and click <strong>Create hosted zone</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmqhSdmwphr85D1jJc6rrw.png" /></figure><p>Next, we need to create a custom record to point to our private entry into our Salesforce Instance. Click into your <strong>my.salesforce.com</strong> private hosted zone and click <strong>Create Record</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHulvICDaqSw96PmAUCRkQ.png" /></figure><p>If you do not know your specific my.salesforce.com domain — you can go to Salesforce Setup and search for <strong>My Domain</strong> in the Quick Find box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nNTjdQ1n2HkD7PTFYZ2N4w.png" /></figure><p>Take your <strong>Domain Name</strong> from Salesforce and place it as the <strong>Record name</strong> in Route 53. Set the <strong>Record type</strong> to <strong>CNAME</strong>. Set the <strong>Value</strong> of the record to the primary record of the VPC Endpoint we set aside earlier, set the <strong>TTL</strong> to something lower like <strong>60</strong> seconds, and click <strong>Create records</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qaOGB9ToW_0z-6gkrKIomg.png" /></figure><p>Now that we have a private zone, we need to make it accessible to CloudHub. So we can use Route 53 Inbound DNS Resolvers that will expose our Private Hosted Zone configuration via a DNS Server IP address. Click on the <a href="https://us-east-1.console.aws.amazon.com/route53resolver/home?region=us-east-1#/inbound-endpoints">Inbound endpoints</a> page in Route 53, select <strong>Inbound Only,</strong> and click <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YnS8EhSfmnBNhQOWZPa6rA.png" /></figure><p>Set an <strong>Endpoint name</strong> for your inbound endpoint, select <strong>the same VPC</strong> you set up your VPC Endpoint for Private Connect in, and set your <strong>Security group</strong> appropriately. <em>Note: You will need the ability for your CloudHub Private Space to be able to communicate with your Private Connect VPC on port 53 TCP and UDP</em>. You can see that I set my <strong>Endpoint name</strong> to <strong>private-connect-demo-r53r</strong>, my <strong>VPC</strong> to <strong>private-connect-demo-vpc</strong>, and left my <strong>Endpoint Type</strong> at <strong>IPv4</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oi_p_kH1mvmZrhL3G7tYEQ.png" /></figure><p>By default Route 53 will ask you to place its resolver in 2 Availability Zones. This will allow for high availability in an outage event. Below you will see I set up my resolver in each availability zone I had configured for my VPC. I set <strong>IP address #1</strong> to <strong>us-east-1a</strong> and its corresponding VPC subnet, and <strong>IP address #2</strong> was set to <strong>us-east-1b</strong> and its corresponding VPC subnet. I also used an <strong>automatically selected IPv4 address</strong> — your organization may find it fit to use <strong>specified addresses</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3jJe9hYRUwBn8jR3JNvV6g.png" /></figure><p>To flesh out all of the availability zones I had in my VPC — I added a third IP address utilizing <strong>us-east-1c</strong> and the corresponding VPC subnet. Finally — click <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78aAwXcwWQgXviSGRGTbrA.png" /></figure><p>Finally — I will not be creating any Outbound endpoints or rules. Simply click <strong>Submit</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkXchrvIyH9xyTq7iuRmKA.png" /></figure><p>Once the resolver is created and <strong>Operational</strong> you can click into it by clicking on the <strong>ID</strong> hyperlink on the left-hand side of the <strong>Inbound endpoints</strong> screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v_q-0wsNIKYxlBFpJLj3-A.png" /></figure><p>In the <strong>Inbound endpoint</strong> details, we are looking for the IP addresses of the Resolver. You can see my 3 private resolver IPs below. Copy each of them down and save them for later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*ZXcDKJVm7enV4yUGx3rSlg.png" /></figure><p>Next, you need to log into Anypoint and click into your Private Space in the <a href="https://anypoint.mulesoft.com/cloudhub/#/console/home/privatespaces/list">Runtime Manager</a> section. Once you can see your Private network of your Private Space, click on the Configure link next to your <strong>Internal DNS servers</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-i0nVvSMK6Zk8ndyQqYrHg.png" /></figure><p>Here you need to take the IPs you got from the Inbound endpoint from Route 53 and put them in the <strong>Server IP Addresses</strong> in a comma-separated format with <strong>no spaces</strong>. Set your <strong>Domains</strong> to <strong>my.salesforce.com</strong> and click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*wS1kXmPsBaSapojmd2_QhA.png" /></figure><p>Congratulations! Assuming all of your firewalls and routes are set up correctly, you now have a fully working Private Connect and CloudHub connectivity plane established!</p><h3>Modify your Mule APIs</h3><p>Modifying your Salesforce Mule application to utilize the appropriate path to get to Salesforce via Private Connect is easy. You should only have to change a single field in your Salesforce configuration because we made the adjustments to DNS that only apply to your CloudHub Private Space and Private Connect VPC. We simply adjusted the default <strong>Token Endpoint</strong> from login.salesforce.com to our my.salesforce.com-specific domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvJCZbQIUs2EjFBlIy01fA.png" /></figure><p>One thing to note: In my example app I am using OAuth JWT as my Authentication mechanism. Due to the way, TLS works under the covers: you will need to use an OAuth mechanism rather than Basic Authentication.</p><h3>Conclusion</h3><p>Through the course of this article, you were able to learn how to build and configure Inbound Connectivity using Private Connect between AWS and Salesforce. We then were able to extend that connectivity into MuleSoft CloudHub 2.0 using Route 53 Private Zones and Resolvers. Our new architecture looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4lnMNsOYHa9qpeEFIbquvw.png" /></figure><p>You’ll notice immediately that the Salesforce API is now communicating through the Transit Gateway directly into the VPC Endpoint all established because we pointed our CloudHub Private Space to our Route 53 Resolver. This provides a completely private channel for communication between Salesforce and any other point of integration you may need.</p><p>Hopefully, this has shown you how easy it is to set up Private Connect Inbound connectivity with Mulesoft. There are some moving parts, but with AWS everything is built in, and HA is right out of the box! If you’re interested in more architectural patterns — please be sure to check out my other content: <a href="https://medium.com/another-integration-blog/global-load-balancing-and-resilience-for-mulesoft-private-spaces-in-cloudhub-2-0-ce66ad588411">Global Load Balancing and Resilience for MuleSoft Private Spaces in CloudHub 2.0 utilizing Amazon Networking Services</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1d8a3a4a837" width="1" height="1" alt=""><hr><p><a href="https://medium.com/another-integration-blog/secure-your-data-and-integrations-with-salesforce-with-private-connect-b1d8a3a4a837">Secure your data and integrations with Salesforce with Private Connect</a> was originally published in <a href="https://medium.com/another-integration-blog">Another Integration Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Global Load Balancing and Resilience for MuleSoft Private Spaces in CloudHub 2.0]]></title>
            <link>https://medium.com/another-integration-blog/global-load-balancing-and-resilience-for-mulesoft-private-spaces-in-cloudhub-2-0-ce66ad588411?source=rss-cc9e7871b386------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce66ad588411</guid>
            <category><![CDATA[route-53]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloudhub]]></category>
            <dc:creator><![CDATA[Michael McDonnell]]></dc:creator>
            <pubDate>Tue, 30 May 2023 16:50:52 GMT</pubDate>
            <atom:updated>2023-05-30T16:50:52.658Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Global Load Balancing and Resilience for MuleSoft Private Spaces in CloudHub 2.0 utilizing Amazon Networking Services</strong></h3><p><em>Co-Author — </em><a href="https://ruebenjimenez.medium.com/"><em>https://medium.com/</em></a><em>@</em><a href="https://ruebenjimenez.medium.com/"><em>ruebenjimenez</em></a></p><p>Disaster Recovery is an essential aspect of any organization, as it ensures that critical business operations can resume functionality as fast as possible after unexpected disruptions such as natural disasters, cyber-attacks, or pandemics. Without a comprehensive business continuity plan in place, companies risk facing significant financial losses, reputational damage, and potentially going out of business altogether. Single availability zone outages are handled by CloudHub 1.0 and CloudHub 2.0’s high availability automatically. However, it is important for businesses to plan for connectivity or regional disruptions in AWS as a means to minimize the impact of unexpected events.</p><p>Configuring and setting up a DR strategy with MuleSoft is incredibly easy with AWS. In this article, we’ll assume you already have a primary private space set up. You’ll learn how to set up your DR environment, attach a transit gateway, learn when to choose between active/passive and active/active, and how to configure Route 53 as your global load balancing solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TN7A-qWh7Mb5_igzr0Hrlg.png" /><figcaption>Diagram 1.0: Complete Architectural Diagram</figcaption></figure><h3><strong>Private Spaces</strong></h3><p>MuleSoft’s CloudHub 2.0 provides a virtual and secure private space for running your applications. You can create multiple private spaces in different regions. Your private network can be connected to your private space to function as a single private network. In each private space, you define a virtual cloud where your apps are deployed, one or more connections to your external network, TLS contexts for domain availability and security, firewall rules for traffic control, and the environments and business groups authorized to deploy to the private space. You can learn more about Private Spaces <a href="https://docs.mulesoft.com/cloudhub-2/ch2-private-space-about">here</a>.</p><p>Here are some configuration steps on both MuleSoft and AWS platforms to set-up global load balancing and resilience for MuleSoft Private Spaces in CH2.0 leveraging Amazon Networking Services.</p><ul><li>Pre-Planning</li><li>Active/Active vs Active/Passive</li><li>Choosing a CIDR Block for your DR Environment</li><li>Transit Gateway (TGW)</li><li>Route53 Health Check</li></ul><h3><strong>Pre-Planning</strong></h3><p>The first step in any major project is preplanning. Preplanning will save on time, cost, and improve the overall quality of your implementation. For a Business Continuity / Disaster Recovery environment, you will need to collect data on both your primary environment and prepare information on your future Disaster Recovery environment</p><p><strong>Primary Environment (Things you already have)</strong></p><ul><li>DNS entries for Public DNS target</li><li>DNS entries for Private DNS Target</li><li>Inbound Public Static IPs</li><li>Outbound Public Static IPs</li><li>Private Space Internal CIDR block (IP Address Range)</li><li>Route CIDRs to and from the extended network (AWS, On-Prem, Other Services)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_KECntzOeaE86McWGuy4LA.png" /></figure><p><strong>Disaster Recovery Environment (Things you need to collect / generate)</strong></p><ul><li>DNS entries for Public DNS target</li><li>DNS entries for Private DNS Target</li><li>Inbound Public Static IPs</li><li>Outbound Public Static IPs</li><li>Private Space Internal CIDR block (IP Address Range)</li><li>Route CIDRs to and from the extended network (AWS, On-Prem, Other Services)</li><li>Names of and Deployable archives of all Business Critical Applications</li></ul><h3><strong>Active/Active vs Active/Passive</strong></h3><p>In an active/active configuration, both private spaces are active and handling traffic at the same time. Generally speaking, you can get better utilization of resources in normal scenarios, improved scalability, and increased availability but will have to adjust for higher costs and potential complexity based on data availability. Many of the benefits of Active/Active are contingent on being able to scale out your application footprint during an event.</p><p>In an active/passive configuration, one private space is active and handling traffic, while the other is hosting applications with no load. If the active private space fails, the passive private space takes over and becomes active. Generally speaking, you will have an overall lower cost of ownership with an active/passive configuration due to the lower complexity and lower core utilization. However, you will have to adjust for potential delays in cutover during an outage, potentially increased costs, and complexity in scaling out the solution as utilization grows.</p><h3><strong>Choosing a CIDR Block for your Disaster Recovery Space</strong></h3><p>CIDR selection in a Private Space is important to be done cautiously because it determines the number of workers you can deploy. The smallest size you can deploy today is a /24 which is 254 usable addresses for workers and your ingress. The largest size you can deploy today is a /16 which is 65,534 usable addresses. Once a CIDR block is assigned to a Private Space, it cannot be changed. This means that if you choose too small to begin, you will have to tear down the entire private space and rebuild it (and reconfigure the routes, firewall rules, reattach the transit gateway, etc) before you can have a functional DR Environment.</p><h3><strong>Configuring Disaster Recovery Private Space</strong></h3><p>Deploying a private space is relatively straightforward. After determining your CIDR and connection points to your backend — it’s just a matter of following the wizard. You can find more details <a href="https://docs.mulesoft.com/cloudhub-2/ps-create-configure">here</a>.</p><ul><li>Start in <a href="https://anypoint.mulesoft.com/cloudhub/#/console/home/privatespaces/list">Runtime Manager’s Private Spaces Section</a>.</li><li>Click “Create private space”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7CcSZX1A-I8lL0xM_9xVQ.png" /></figure><ul><li>Name your private space. We will name ours <strong>DisasterRecoveryPrivateSpace</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*tdxJfMLYdZ7_rDcEo6bAbw.png" /></figure><ul><li>Click <strong>Create Private Network</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*Cnhyav0K7h5bDs0I5CbzuQ.png" /></figure><ul><li>Set the CIDR and Region for your Private Network. In our example we’ll be selecting <strong>US-West 1</strong> as our DR Region and setting our CIDR to <strong>172.30.0.0/24</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*hvVDhux3ydKdl6RjNrFl8w.png" /></figure><ul><li>Get some coffee while we spin up your private space! (About 20–30 minutes)</li><li>In our example — we are connecting to our data center backbone via the AWS internal network. We will be using a Transit Gateway Attachment to make that happen. Create a Transit Gateway Attachment by clicking <strong>Create Connection</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-URca1sM1i8b7VKMHF8X2A.png" /></figure><ul><li>Select <strong>Transit Gateway</strong> and give the attachment a name. In this example we’ll be naming ours <strong>tgw-us-w1-attach </strong>for Transit Gateway US West 1 Attachment and <strong>click next</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*BW8tB2OXZItHSNgJw1BL8g.png" /></figure><ul><li>Enter in your static routes (if necessary)— as shown above in Diagram 1.0 — our data center is 10.0.0.0/8 and our cloud space is in the 172.16.0.0/12 subnet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0NwPhE442Ver2ScamzqPQ.png" /></figure><ul><li>Follow the instructions and click the <strong>Create Resource Share</strong> link.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0q4H0FgaxKvQ40uYbxMWQ.png" /></figure><ul><li>In the AWS Console fill in your specific Transit Gateway and Mulesoft AWS Account ID. We named ours <strong>tgw-ch2-us-w1-rs</strong> to designate that it is a resource share of a transit gateway to CloudHub 2.0 in US-West 1. Click <strong>Create resource share</strong> when everything is filled out.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36axQPRNweLEiIZEjOeI0A.png" /></figure><ul><li>Insert your Resource Share ID and Owner ID</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*okgHvjyS-8A5ouWols_DEA.png" /></figure><ul><li>Click on the <strong>Transit Gateway Attachments</strong> link to accept the attachment request and Click <strong>Done</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d1geLsBK6KVTIv83g29Jtw.png" /></figure><ul><li>Select the appropriate Transit Gateway Attachment and select Actions -&gt; Accept transit gateway attachment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tfnlno0I286NojE3Ygp1BQ.png" /></figure><ul><li>Accept the Transit Gateway Attachment by clicking <strong>Accept</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gb15WMGv047D9g59WfRLcA.png" /></figure><ul><li>After about 2 minutes you’ll see the accepted transit gateway attachment in your private space details screen</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7xKZbRaOMIbGnhBJfb5EQ.png" /></figure><ul><li>Configure CNames for Ingress Controllers in Route 53. Take the Public (or Private!) DNS Target and apply your appropriate CNAME to it. In our case, we will create <strong>disaster-recovery.mulesoftplatform.com</strong> against our public target</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*gkZQ4UvBoTj9QfFxV3BExw.png" /></figure><h3>Configure Route53 health checks and fail-over</h3><p>In this section — we will associate multiple resources with the primary record, the secondary record, or both. In the way we will configure everything; Route 53 will consider the primary fail-over record to be healthy as long as at least one of the associated resources is healthy.</p><ul><li>Start creating a health check by clicking on <strong>Health Check</strong> on the left and clicking <strong>Create Health Check.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-787mhvYjQM3KPG9G2loZg.png" /></figure><ul><li>In this example we will be using our hello-sapi API in each environment as our health check URL. So we’ll be setting the following:<br>Name: <strong>globalmulesoftplatform</strong><br>What to monitor: <strong>Endpoint</strong><br>Specify endpoint by: <strong>Domain name</strong><br>Protocol: <strong>HTTPS</strong><br>Domain name: <strong>primary.mulesoftplatform.com</strong><br>Port: <strong>443</strong><br>Path: <strong>hello-sapi/api/message</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*USZjyRI5OACLcbssbdjOvg.png" /></figure><ul><li>In our example — configuring SNS notification is not necessary</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KwPfNgWiP3_zm6HXjwzyYA.png" /></figure><ul><li>After the health check is created successfully, copy and paste the health check id and set it to the side for moment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5u_KvfVssD87zTUzkmU57A.png" /></figure><ul><li>Now that we’ve configured the health check we can configure our top-level CNAME <strong>global.mulesoftplatform.com </strong>that will dynamically fail-over between our primary and disaster-recovery Private Spaces.</li><li>Click into your hosted zone and click <strong>Create Record</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jux-dsK-XitLyY81vt1X2Q.png" /></figure><ul><li>Record name: <strong>global</strong><br>Record type: <strong>CNAME</strong><br>Alias: <strong>On</strong><br>Route traffic to: <strong>Alias to another record in this hosted zone</strong><br>Search for: <strong>primary.mulesoftplatform.com</strong><br>Routing policy: <strong>Failover</strong><br>Failover record type: <strong>Primary</strong><br>Health check ID: <em>Use the previous one generated</em>.<br>Evaluate target path: <strong>Yes</strong> <br>Record ID: <strong>primary</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6C1jhZGWKsbLpzNjLVTuQ.png" /></figure><ul><li>Create another record — this time for the Disaster Recovery Private Space.<br>Record name: <strong>global</strong><br>Record type: <strong>CNAME</strong><br>Alias: <strong>On</strong><br>Route traffic to: <strong>Alias to another record in this hosted zone</strong><br>Search for: <strong>disaster-recovery.mulesoftplatform.com</strong><br>Routing policy: <strong>Failover</strong><br>Failover record type: <strong>Secondary</strong><br>Health check ID: <em>This example does not need a secondary health check</em>.<br>Evaluate target path: <strong>Yes</strong> <br>Record ID: <strong>secondary</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UekdobBJ3p2CLQsJnHFMjQ.png" /></figure><ul><li>Finally: Verify Route53 health check configurations and primary/secondary fail-over routing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pMKV2562-gWCbRpYtMQpKg.png" /></figure><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YoNtGlWe6AL5fGRBKVkVvA.gif" /></figure><p>While walking through this blog, we were able to demonstrate to you how easy it is to set-up business continuity with a strong partnership between Mulesoft and AWS. In case, there was an outage in the future — your business would be prepared to fail over seamlessly from US-East-1 to US-West-1.</p><p>By utilizing the MuleSoft Anypoint Platform we are able to quickly spin up a CloudHub 2.0 Private Space for our Disaster Recovery region, connect it via AWS Transit Gateway back to our corporate network, and intelligently load balance across our primary and disaster recovery zones utilizing health checks built into Route53.</p><p>Going through this process we were able to pre-plan our deployment making sure we’d have a seamless integration into our backend systems by confirming we did not have overlapping IPs, and were able to choose an Active/Passive fail-over plan by intelligently using the capacity we have with minimal overhead.</p><p>Hopefully this has shown you how easy it is to configure a disaster recovery strategy for your own environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce66ad588411" width="1" height="1" alt=""><hr><p><a href="https://medium.com/another-integration-blog/global-load-balancing-and-resilience-for-mulesoft-private-spaces-in-cloudhub-2-0-ce66ad588411">Global Load Balancing and Resilience for MuleSoft Private Spaces in CloudHub 2.0</a> was originally published in <a href="https://medium.com/another-integration-blog">Another Integration Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>