Skip to content

Commit 7312fa9

Browse files
feat: criado doc do helm
1 parent c8e3cbb commit 7312fa9

File tree

16 files changed

+1134
-1
lines changed

16 files changed

+1134
-1
lines changed
File renamed without changes.

c++/c/README.md

Whitespace-only changes.

cert-manager/README.md

Whitespace-only changes.

hashicorp/README.md

Whitespace-only changes.

hashicorp/terraform/.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
/.idea
25+
.env
26+
27+
# Ignore Terraform provider binaries
28+
terraform/.terraform/providers/**
29+
30+
# Local .terraform directories
31+
**/.terraform/*
32+
33+
# .tfstate files
34+
*.tfstate
35+
*.tfstate.*
36+
37+
38+
# Ignore the Terraform lock file
39+
.terraform.lock.hcl
40+
41+
# Ignore the Terraform directory and its contents
42+
.terraform/
43+
44+
# Crash log files
45+
crash.log
46+
47+
# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
48+
# .tfvars files are managed as part of configuration and so should be included in
49+
# version control.
50+
#
51+
# example.tfvars
52+
53+
# Ignore override files as they are usually used to override resources locally and so
54+
# are not checked in
55+
override.tf
56+
override.tf.json
57+
*_override.tf
58+
*_override.tf.json
59+
60+
# Include override files you do wish to add to version control using negated pattern
61+
#
62+
# !example_override.tf
63+
64+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
65+
# example: *tfplan*
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = "5.46.0"
6+
}
7+
}
8+
}
9+
10+
provider "aws" {
11+
region = "us-east-1"
12+
}

hashicorp/terraform/network/vpc.tf

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
resource "aws_vpc" "myvpc" {
2+
cidr_block = "10.0.0.0/16"
3+
tags = {
4+
Name = "MyVPC"
5+
}
6+
}
7+
8+
resource "aws_subnet" "PublicSubnet1" {
9+
vpc_id = aws_vpc.myvpc.id
10+
availability_zone = "us-east-1a"
11+
cidr_block = "10.0.1.0/24"
12+
13+
tags = {
14+
Name = "PublicSubnet1"
15+
}
16+
}
17+
18+
resource "aws_subnet" "PrivSubnet1" {
19+
vpc_id = aws_vpc.myvpc.id
20+
cidr_block = "10.0.2.0/24"
21+
map_public_ip_on_launch = true
22+
23+
tags = {
24+
Name = "PrivSubnet1"
25+
}
26+
}
27+
28+
resource "aws_subnet" "PublicSubnet2" {
29+
vpc_id = aws_vpc.myvpc.id
30+
availability_zone = "us-east-1b"
31+
cidr_block = "10.0.3.0/24"
32+
33+
tags = {
34+
Name = "PublicSubnet2"
35+
}
36+
}
37+
38+
resource "aws_subnet" "PrivSubnet2" {
39+
vpc_id = aws_vpc.myvpc.id
40+
cidr_block = "10.0.4.0/24"
41+
map_public_ip_on_launch = true
42+
43+
tags = {
44+
Name = "PrivSubnet2"
45+
}
46+
}
47+
48+
resource "aws_internet_gateway" "myIgw" {
49+
vpc_id = aws_vpc.myvpc.id
50+
}
51+
52+
resource "aws_route_table" "PublicRT" {
53+
vpc_id = aws_vpc.myvpc.id
54+
route {
55+
cidr_block = "0.0.0.0/0"
56+
gateway_id = aws_internet_gateway.myIgw.id
57+
}
58+
}
59+
60+
resource "aws_route_table_association" "PublicRTAssociation1" {
61+
subnet_id = aws_subnet.PublicSubnet1.id
62+
route_table_id = aws_route_table.PublicRT.id
63+
}
64+
65+
resource "aws_route_table_association" "PublicRTAssociation2" {
66+
subnet_id = aws_subnet.PublicSubnet2.id
67+
route_table_id = aws_route_table.PublicRT.id
68+
}
69+
70+
resource "aws_eip" "lb" {
71+
vpc = true
72+
}
73+
74+
resource "aws_nat_gateway" "nat" {
75+
allocation_id = aws_eip.lb.id
76+
subnet_id = aws_subnet.PrivSubnet1.id
77+
78+
tags = {
79+
Name = "gw NAT"
80+
}
81+
82+
depends_on = [aws_internet_gateway.myIgw]
83+
}

0 commit comments

Comments
 (0)