Deploying a global API Gateway infrastructure in just 5 clicks with Tyk & AWS
Here’s a common scenario we see quite often:
- You have a bunch of services sitting in AWS, potentially across multiple regions
- You want to expose those services in a secure and scalable way with an API gateway
- You don’t want the overhead of having to deploy and manage that infrastructure yourself
Sound familiar? We think so – we know loads of users that don’t want to go off and install the dependencies required to run Tyk (or any other API gateway for that matter).
In fact, that’s why we originally built and launched Tyk Hybrid back in 2015, to make it easy and straightforward to get API management in place with as little effort as possible.
Tyk Hybrid puts all the power of our popular open source API Gateway in your infrastructure, but keeps all the more complex dependencies such as our Analytics Dashboard, API Designer and Developer Portal in our cloud.
Today we want to take that ease-of-use a step further, by offering our Tyk Hybrid SaaS as an AWS Marketplace AMI.
That’s right – if you already have a Tyk Cloud account, or don’t mind signing up for a free trial, we can get you up and running in as little as 5 clicks! Here’s how…
What you need to get started
Before you can start running your API Gateway, you need to have:
- A Tyk Hybrid account. (And, for a limited period, we’re offering a free trial!)
- A subscription to the Tyk Hybrid Gateway AMI from the AWS Marketplace
Launching Tyk Hybrid API Gateway from AWS Marketplace
- Login or sign up to a free AWS account
- Select the Tyk Hybrid AMI Tyk Hybrid account from the AWS Marketplace Tyk API Gateway page.
- Click to subscribe
- Choose 1-click launch and select the region and instance you want (there is even a free option available)
- Now Launch with “1 click”
By the end of these 5 steps you should have a live Tyk Hybrid account in the Tyk SaaS, plus a live Tyk Gateway running in AWS.
Connecting your gateways to Tyk Cloud
Now that your gateway is running in your infrastructure, you need a simple but powerful way to manage it, to view analytics and also a developer portal for the documentation and self-signup.
Rather than install and manage all of that yourself, you can now simply connect to our SaaS infrastructure and we’ll provide it for you.
- If you don’t yet have a Tyk account, get a free trial
- Go to https://admin.cloud.tyk.io and login with your new details.
- Click “Users” and select your name and hit edit, at the foot of the screen you will see your Organisation ID, take note of this.
- Now connect to the instance using SSH (make sure to use the key specified during the provisioning), e.g. ssh -i your_key.pem email@example.com
- Once inside the instance execute sudo /opt/tyk-gateway/setup_hybrid.sh -o your-organisation-id -k your-api-key (there are more configuration options available)
- If everything went well, Tyk Hybrid Gateway will be running on port 8080, with a Redis storage server running on the same instance. This is fine for your POC, but in production for performance reasons we’d recommend running Redis externally to the gateway, perhaps using Elasticache. That Redis instance can be shared by a cluster of gateways in the same region.
- Make sure your EC2 security groups attached to the instance allow inbound traffic on port 8080
That’s it – you’re all set
You now have a ready-to-use Tyk Gateway deployed in your AWS infrastructure, connected to a Dashboard and Portal that is managed by Tyk. You can now start to proxy traffic through your gateway instance’s address and use the dashboard and portal to setup policies for controlling access and self-service registration.
You can add as many gateways as you want to to the account, so you can quickly build a global deployment. Tyk is highly performant and fully featured, the gateway can be extended through pluggable middleware and you can use the Tyk Dashboard to manage the entire global deployment without infrastructure overhead.
What’s more, you’re not just restricted to AWS, you can deploy the same hybrid gateways across a mix of AWS, Heroku, Azure, your own DC’s…