We'll show you how easy and fast it is to set up your VPC using Akamai Connected Cloud resources on a global scale.
APACHE-2.0 License
VPC or Virtual Private Cloud is a concept where it is possible to set up private networks in a Cloud infrastructure.
It is a good practice to use VPCs to protect your applications from the outside world (Internet) and consequently set up an environment with controlled and managed access.
We'll show you how easy and fast it is to set up your VPC using Akamai Connected Cloud resources on a global scale.
All this in an automated way with Terraform recipes.
If you want to collaborate in this project, reach out us by e-Mail.
You can also fork and customize this project by yourself once it's opensource. Follow the requirements below to set up your environment.
Just execute the shell script deploy.sh
to start the provisioning and execute the shell script undeploy.sh
for
de-provisioning.
The infrastructure provisioning state will be stored in an object storage. By default, we are using the Akamai Connected Cloud object storage. So, before start the deployment, you need to create your bucket and credentials. To do that, follow the these instructions.
Please define the Akamai Connected Cloud credentials in the file iac/.credentials
based on iac/.credentials.template
.
Follow this diagram to check out the architecture.
If you to customize by yourself, just edit the files located in the iac
directory.
main.tf
: Defines the VPC provisioning providers and credentials.variables.tf
: Defines the VPC provisioning variables.vpc-credentials.tf
: Defines default credentials for connecting to the VPC.vpc-stackscripts.yml
: Defines the VPC setup scripts.vpc-gateways.yml
: Defines the VPC gateways provisioning recipe.vpc-nodes.yml
: Defines the VPC nodes provisioning recipe.vpc-site-to-site.tf
: Defines the VPC site-to-site recipe.vpc-firewall.yml
: Defines firewall rules for connecting to the VPC.Follow the documentation below as suggestion to setup the credentials and environment:
How to create Linode credentials
How to create the Linode object storage to store Terraform provisioning state
List of Linode regions
List of Linode types
List of Linode images
After the VPC was created, you can connect into it using an OpenVPN client.
TunnelBlick
: For MacOS users.OpenVPN Client
: For all operating systems.Import the .ovpn
file saved in this project directory, after the provisioning.
And that's it!!