forked from cloudposse/terraform-aws-vpc-peering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.yaml
106 lines (98 loc) · 3.16 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: terraform-aws-vpc-peering
# Tags of this project
tags:
- aws
- terraform
- terraform-modules
- platform
- vpc
- peering
- vpc-peering
- vpn
# Categories of this project
categories:
- terraform-modules/networking
# Logo for this project
#logo: docs/logo.png
# License of this project
license: "APACHE2"
# Canonical GitHub repo
github_repo: cloudposse/terraform-aws-vpc-peering
# Badges to display
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-vpc-peering.svg"
url: "https://github.com/cloudposse/terraform-aws-vpc-peering/releases/latest"
- name: "Slack Community"
image: "https://slack.cloudposse.com/badge.svg"
url: "https://slack.cloudposse.com"
related:
- name: "terraform-aws-vpc"
description: "Terraform Module that defines a VPC with public/private subnets across multiple AZs with Internet Gateways"
url: "https://github.com/cloudposse/terraform-aws-vpc"
- name: "terraform-aws-kops-vpc-peering"
description: "Terraform module to create a peering connection between two VPCs"
url: "https://github.com/cloudposse/terraform-aws-kops-vpc-peering"
# Short description of this project
description: |-
Terraform module to create a peering connection between two VPCs
# How to use this project
usage: |2-
For a complete example, see [examples/complete](examples/complete).
For automated tests of the complete example using [bats](https://github.com/bats-core/bats-core) and [Terratest](https://github.com/gruntwork-io/terratest) (which tests and deploys the example on AWS), see [test](test).
### Using VPC IDs
```hcl
module "vpc_peering" {
source = "cloudposse/vpc-peering/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "dev"
name = "cluster"
requestor_vpc_id = "vpc-XXXXXXXX"
acceptor_vpc_id = "vpc-YYYYYYYY"
}
```
### Using VPC tags
```hcl
module "vpc_peering" {
source = "cloudposse/vpc-peering/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "dev"
name = "cluster"
requestor_vpc_tags = {
"kubernetes.io/cluster/my-k8s" = "owned"
}
acceptor_vpc_tags = {
Name = "legacy-vpc"
}
}
```
references:
- name: "terraform-aws-vpc-kops-peering"
description: "Thanks to [Gladly.com](https://www.gladly.com/) for the inspiration with this wonderful module"
url: "https://github.com/sagansystems/terraform-aws-vpc-kops-peering"
screenshots:
- name: "vpc-peering"
description: "VPC Peering Connection in the AWS Web Console"
url: "images/vpc-peering.png"
include:
- "docs/targets.md"
- "docs/terraform.md"
# Contributors to this project
contributors:
- name: "Andriy Knysh"
github: "aknysh"
- name: "Vladimir"
github: "SweetOps"
- name: "Erik Osterman"
github: "osterman"
- name: "Igor Rodionov"
github: "goruha"