Skip to content

Commit f62a89e

Browse files
Removed static provider value and updatd Readme
1 parent 235985f commit f62a89e

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ provider "aws" {
2121
}
2222
2323
module "vpc" {
24-
source = "opensource4learn/vpc/aws"
25-
version = "0.1.0-beta"
26-
cluster_prefix = "source4learn"
27-
cluster_environment = "production"
28-
cidr = "10.0.0.0/20"
29-
subnet_bits = "4"
24+
source = "opensource4learn/vpc/aws"
25+
version = "0.1.0-beta"
26+
cluster_prefix = "source4learn"
27+
cluster_environment = "development"
28+
cluster_architecture = "3-tier"
29+
cidr = "10.0.0.0/20"
30+
subnet_bits = "4"
3031
}
3132
```
3233

@@ -36,6 +37,12 @@ module "vpc" {
3637
|------|---------|
3738
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.0 |
3839

40+
## Providers
41+
42+
| Name | Version |
43+
|------|---------|
44+
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
45+
3946
## Modules
4047

4148
| Name | Source | Version |
@@ -56,9 +63,10 @@ module "vpc" {
5663

5764
| Name | Description | Type | Default | Required |
5865
|------|-------------|------|---------|:--------:|
59-
| <a name="input_cidr"></a> [cidr](#input\_cidr) | CIDR block value to define the size of the AWS VPC | `string` | `"10.0.0.0/20"` | no |
60-
| <a name="input_cluster_environment"></a> [cluster_environment](#input\_cluster_environment) | To apply generic cluster_environment to AWS VPC Resources | `string` | n/a | yes |
61-
| <a name="input_cluster_prefix"></a> [cluster_prefix](#input\_cluster_prefix) | To apply generic naming to AWS VPC Resources | `string` | n/a | yes |
66+
| <a name="input_cidr"></a> [cidr](#input\_cidr) | CIDR block value to define the size of the AWS VPC | `string` | n/a | yes |
67+
| <a name="input_cluster_architecture"></a> [cluster\_architecture](#input\_cluster\_architecture) | To apply generic cluster architecture to AWS VPC Resources | `string` | n/a | yes |
68+
| <a name="input_cluster_environment"></a> [cluster\_environment](#input\_cluster\_environment) | To apply generic environment to AWS VPC Resources | `string` | n/a | yes |
69+
| <a name="input_cluster_prefix"></a> [cluster\_prefix](#input\_cluster\_prefix) | To apply generic naming to AWS VPC Resources | `string` | n/a | yes |
6270
| <a name="input_subnet_bits"></a> [subnet\_bits](#input\_subnet\_bits) | Subnet bits for cidrsubnet interpolation or Size we need to define for the Subnet (cidr of VPC + Subnet bits) | `string` | n/a | yes |
6371

6472
## Outputs

main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
# AWS VPC
2-
provider "aws" {
3-
region = "ap-south-1"
4-
}
5-
62
terraform {
73
required_version = ">= 0.12.0"
84
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ variable "cluster_environment" {
1010
}
1111

1212
variable "cluster_architecture" {
13-
description = "To apply generic cluster_environment to AWS VPC Resources"
13+
description = "To apply generic cluster architecture to AWS VPC Resources"
1414
type = string
1515
}
1616

0 commit comments

Comments
 (0)