This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ced6b6f
commit 257f4a4
Showing
12 changed files
with
81 additions
and
18 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
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
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,3 @@ | ||
{ | ||
"osc": "312290aaabe88edbde7cac80712a7d66a966120b5e537bdd5adc973efc68ccb0" | ||
} |
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,11 @@ | ||
resource "osc_customer_gateway" "customer_gw" { | ||
bgp_asn = 65000 | ||
ip_address = "149.6.164.226" | ||
type = "ipsec.1" | ||
|
||
tags { | ||
project = "${var.project}" | ||
Name = "${var.project}_customergw" | ||
} | ||
} | ||
|
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,11 @@ | ||
provider "osc" { | ||
profile = "${var.profile}" | ||
region = "${var.region}" | ||
skip_credentials_validation = true | ||
skip_region_validation = true | ||
|
||
endpoints { | ||
ec2 = "${var.url_ec2}" | ||
iam = "${var.url_iam}" | ||
} | ||
} |
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,5 @@ | ||
profile = "default" | ||
region = "eu-west-2" | ||
url_ec2 = "fcu.eu-west-2.outscale.com" | ||
url_iam = "eim.eu-west-2.outscale.com" | ||
project = "vpn" |
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,5 @@ | ||
variable profile {} | ||
variable region {} | ||
variable url_ec2 {} | ||
variable url_iam {} | ||
variable project {} |
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,7 @@ | ||
resource "osc_vpn_gateway" "vpn_gw" { | ||
vpc_id = "${osc_vpc.vpc.id}" | ||
tags { | ||
project = "${var.project}" | ||
Name = "${var.project}_vpngw" | ||
} | ||
} |
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,8 @@ | ||
resource "osc_vpc" "vpc" { | ||
cidr_block = "192.168.140.0/22" | ||
|
||
tags { | ||
project = "${var.project}" | ||
Name = "${var.project}_vpc" | ||
} | ||
} |
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,6 @@ | ||
resource "osc_vpn_connection" "vpnconnection" { | ||
vpn_gateway_id = "${osc_vpn_gateway.vpn_gw.id}" | ||
customer_gateway_id = "${osc_customer_gateway.customer_gw.id}" | ||
type = "ipsec.1" | ||
static_routes_only = false | ||
} |
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