Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fvilarinho/akamai-vpc-demo
We'll show you how easy and fast it is to set up your VPC using Akamai Connected Cloud resources on a global scale.
https://github.com/fvilarinho/akamai-vpc-demo
akamai linode openvpn terraform
Last synced: 11 days ago
JSON representation
We'll show you how easy and fast it is to set up your VPC using Akamai Connected Cloud resources on a global scale.
- Host: GitHub
- URL: https://github.com/fvilarinho/akamai-vpc-demo
- Owner: fvilarinho
- License: apache-2.0
- Created: 2023-05-09T23:04:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-16T14:34:20.000Z (9 months ago)
- Last Synced: 2024-10-10T19:43:55.350Z (28 days ago)
- Topics: akamai, linode, openvpn, terraform
- Language: HCL
- Homepage:
- Size: 79.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Akamai VPC Demo
## 1. Introduction
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.
## 2. Maintainers
- [Felipe Vilarinho](https://www.linkedin.com/in/fvilarinho)
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.## 3. Requirements
- [`Terraform 1.4.x`](https://www.terraform.io)
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](https://www.linode.com/docs/products/storage/object-storage/get-started/).Please define the Akamai Connected Cloud credentials in the file `iac/.credentials` based on `iac/.credentials.template`.
## 4. Architecture
Follow this [diagram](https://viewer.diagrams.net/?t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BSpp8hek6u6InrR%2Bny86CnrZpfaw79DWvFrpcblct219FA96GE06bnE7bml5FBt7d5PSyV%2FOz8YTzWEHFvtFrIgXXnuv%2FYaDgSmXyxXgCjb0950DhxNP%2FG1I4yxdSp5O03x81qGTIG4Ywj0mKJHhOWPyLVL6w0Nn2JJK93LCOYzcKVFZywjckrdh3OOHlhMI%2FDnjFAWeHpS5fwFWVhvqOAwuV9OcuLdFP2JL7zimBF1vzKcvzxVMMV9mnSuTd%2FUuzqr2RCu%2Fj9jT%2FMMNwFLafTpdfdvjjo2FXb7OqUMTvnxL7su4WylQuqiDBCGT7JcI7OvxTG74%2Bf4IC7D8X%2BhqVkAzJkdb3rBmo813DFVsfySqzXLuVWr4iq%2FNLZPY79O3%2Fq%2F3fJfRrOf9IsG6dcGQw7umtdT8%2Fanrt%2BuCyp%2BfjOz9phXDNq31%2BWw58l5N%2BPoc8XmxUuZpH8PNdDzfjkMo3dhNfXjkQ760h666xNuBDuQVmfwgflKboaJL%2BrSVe3rtwvnm1YnsUiX%2FPaqIMKz6%2FIf7AQi%2Fv4SfF%2FwE%3D) to check out the architecture.
## 5. Settings
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`](https://www.linode.com/docs/api)
- [`How to create the Linode object storage to store Terraform provisioning state`](https://www.linode.com/docs/guides/platform/object-storage)
- [`List of Linode regions`](https://www.linode.com/docs/api/regions/)
- [`List of Linode types`](https://www.linode.com/docs/api/linode-types/)
- [`List of Linode images`](https://www.linode.com/docs/api/images/)## 6. Testing
After the VPC was created, you can connect into it using an OpenVPN client.
- [`TunnelBlick`](https://tunnelblick.net/downloads.html): For MacOS users.
- [`OpenVPN Client`](https://openvpn.net/client): For all operating systems.Import the `.ovpn` file saved in this project directory, after the provisioning.
## 7. Other resources
- [`Terraform Linode Provider`](https://registry.terraform.io/providers/linode/linode/latest/docs)
- [`Linode documentation`](https://www.linode.com/docs/)
- [`OpenVPN Setup Script`](https://github.com/fvilarinho/openvpn-setup)And that's it!!