diff --git a/README.md b/README.md index 767fd77..3a4d38f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@
-We eat, drink, sleep and most importantly love **DevOps**. We are working towards stratergies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. +We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself. @@ -72,7 +72,7 @@ This module has a few dependencies: Here is an example of how you can use this module in your inventory structure: ```hcl module "security_group" { - source = "git::https://github.com/clouddrove/terraform-aws-security-group.git?ref=tags/0.12.3" + source = "git::https://github.com/clouddrove/terraform-aws-security-group.git?ref=tags/0.12.4" name = "security-group" application = "clouddrove" environment = "test" @@ -93,24 +93,25 @@ Here is an example of how you can use this module in your inventory structure: | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| -| allowed_ip | List of allowed ip. | list | `` | no | -| allowed_ports | List of allowed ingress ports. | list | `` | no | -| application | Application (e.g. `cd` or `clouddrove`). | string | `` | no | -| description | The security group description. | string | `Instance default security group (only egress access is allowed).` | no | -| enable_security_group | Enable default Security Group with only Egress traffic allowed. | bool | `true` | no | -| environment | Environment (e.g. `prod`, `dev`, `staging`). | string | `` | no | -| label_order | Label order, e.g. `name`,`application`. | list | `` | no | -| name | Name (e.g. `app` or `cluster`). | string | `` | no | -| protocol | The protocol. If not icmp, tcp, udp, or all use the. | string | `tcp` | no | -| security_groups | List of Security Group IDs allowed to connect to the instance. | list | `` | no | -| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). | map(string) | `` | no | -| vpc_id | The ID of the VPC that the instance security group belongs to. | string | `` | no | +| allowed\_ip | List of allowed ip. | list | `` | no | +| allowed\_ports | List of allowed ingress ports. | list | `` | no | +| application | Application \(e.g. `cd` or `clouddrove`\). | string | `""` | no | +| description | The security group description. | string | `"Instance default security group (only egress access is allowed)."` | no | +| enable\_security\_group | Enable default Security Group with only Egress traffic allowed. | bool | `"true"` | no | +| environment | Environment \(e.g. `prod`, `dev`, `staging`\). | string | `""` | no | +| label\_order | Label order, e.g. `name`,`application`. | list | `` | no | +| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string | `"anmol@clouddrove.com"` | no | +| name | Name \(e.g. `app` or `cluster`\). | string | `""` | no | +| protocol | The protocol. If not icmp, tcp, udp, or all use the. | string | `"tcp"` | no | +| security\_groups | List of Security Group IDs allowed to connect to the instance. | list | `` | no | +| tags | Additional tags \(e.g. map\(`BusinessUnit`,`XYZ`\). | map(string) | `` | no | +| vpc\_id | The ID of the VPC that the instance security group belongs to. | string | `""` | no | ## Outputs | Name | Description | |------|-------------| -| security_group_ids | IDs on the AWS Security Groups associated with the instance. | +| security\_group\_ids | IDs on the AWS Security Groups associated with the instance. | | tags | A mapping of public tags to assign to the resource. | @@ -144,4 +145,4 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s [linkedin]: https://cpco.io/linkedin [twitter]: https://twitter.com/clouddrove/ [email]: https://clouddrove.com/contact-us.html - [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= \ No newline at end of file + [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= diff --git a/README.yaml b/README.yaml index 28aabff..e156c46 100644 --- a/README.yaml +++ b/README.yaml @@ -36,7 +36,7 @@ usage : |- Here is an example of how you can use this module in your inventory structure: ```hcl module "security_group" { - source = "git::https://github.com/clouddrove/terraform-aws-security-group.git?ref=tags/0.12.3" + source = "git::https://github.com/clouddrove/terraform-aws-security-group.git?ref=tags/0.12.4" name = "security-group" application = "clouddrove" environment = "test" diff --git a/main.tf b/main.tf index efd54ec..bbd713d 100644 --- a/main.tf +++ b/main.tf @@ -13,6 +13,7 @@ module "labels" { name = var.name application = var.application environment = var.environment + managedby = var.managedby label_order = var.label_order } locals { diff --git a/variables.tf b/variables.tf index f270ced..95310d6 100644 --- a/variables.tf +++ b/variables.tf @@ -18,6 +18,12 @@ variable "environment" { description = "Environment (e.g. `prod`, `dev`, `staging`)." } +variable "managedby" { + type = string + default = "anmol@clouddrove.com" + description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'." +} + variable "label_order" { type = list default = []