-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from red5pro/feature/vpc-only
Feature/vpc only
- Loading branch information
Showing
10 changed files
with
471 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# AWS Red5 VPC only | ||
|
||
This example illustrates how to create a VPC using red5pro module | ||
|
||
* VPC create | ||
* Subnets create | ||
* Route table | ||
* Internet Gateway | ||
|
||
## Preparation | ||
|
||
* Install **terraform** https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli | ||
* Get AWS Access key and AWS Secret key or use existing (AWS IAM - EC2 full access, VPC full access) | ||
|
||
## Usage | ||
|
||
To run this example you need to execute: | ||
|
||
```bash | ||
$ terraform init | ||
$ terraform plan | ||
$ terraform apply | ||
``` | ||
|
||
## Notes | ||
|
||
* To activate HTTPS/SSL you need to add DNS A record for Elastic IP of Red5 Pro server | ||
* Note that this example may create resources which can cost money. Run `terraform destroy` when you don't need these resources. | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 | | ||
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.0 | | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_red5pro_vpc"></a> [red5pro\_vpc](#module\_red5pro\_vpc) | ../../ | n/a | | ||
|
||
## Resources | ||
|
||
No resources. | ||
|
||
## Inputs | ||
|
||
No inputs. | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_subnet_ids"></a> [subnet\_ids](#output\_subnet\_ids) | Subnet IDs | | ||
| <a name="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id) | VPC ID | | ||
| <a name="output_vpc_name"></a> [vpc\_name](#output\_vpc\_name) | VPC Name | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#################################################################################### | ||
# Create new VPC using red5pro module | ||
#################################################################################### | ||
|
||
provider "aws" { | ||
region = "us-west-1" # AWS region | ||
access_key = "" # AWS IAM Access key | ||
secret_key = "" # AWS IAM Secret key | ||
} | ||
|
||
module "red5pro_vpc" { | ||
source = "../../" | ||
|
||
type = "vpc" # Deployment type: single, cluster, autoscaling, vpc | ||
name = "red5pro-vpc" # Name to be used on all the resources as identifier | ||
|
||
# VPC configuration | ||
vpc_create = true # true - create new VPC, false - use existing VPC | ||
vpc_cidr_block = "10.105.0.0/16" | ||
vpc_public_subnets = ["10.105.0.0/24", "10.105.1.0/24", "10.105.2.0/24", "10.105.3.0/24"] # Public subnets for Stream Manager and Red5 Pro server instances | ||
|
||
# Red5 Pro tags configuration - it will be added to all Red5 Pro resources | ||
tags = { | ||
Terraform = "true" | ||
Environment = "dev" | ||
Project = "red5pro" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
output "vpc_id" { | ||
description = "VPC ID" | ||
value = module.red5pro_vpc.vpc_id | ||
} | ||
output "vpc_name" { | ||
description = "VPC Name" | ||
value = module.red5pro_vpc.vpc_name | ||
} | ||
output "subnet_ids" { | ||
description = "Subnet IDs" | ||
value = module.red5pro_vpc.subnet_ids | ||
} |
Empty file.
Oops, something went wrong.