Skip to content

Commit

Permalink
fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Mar 24, 2020
1 parent 02e5f08 commit c7929a3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<hr>


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 <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
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 <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> 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.

Expand Down Expand Up @@ -145,6 +145,7 @@ Here is an example of how you can use this module in your inventory structure:
| ipv6_addresses | List of IPv6 addresses from the range of the subnet to associate with the primary network interface. | list | `<list>` | no |
| key_name | The key name to use for the instance. | string | `` | no |
| label_order | Label order, e.g. `name`,`application`. | list | `<list>` | no |
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string | `anmol@clouddrove.com` | no |
| monitoring | If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0). | bool | `false` | no |
| name | Name (e.g. `app` or `cluster`). | string | `` | no |
| network_interface | Customize network interfaces to be attached at instance boot time. | list(map(string)) | `<list>` | no |
Expand Down
2 changes: 0 additions & 2 deletions _example/_bin/user_data.sh

This file was deleted.

3 changes: 0 additions & 3 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ provider "aws" {
region = "eu-west-1"
}



module "vpc" {
source = "git::https://github.com/clouddrove/terraform-aws-vpc.git?ref=tags/0.12.4"

Expand Down Expand Up @@ -122,7 +120,6 @@ module "ec2" {
ebs_volume_type = "gp2"
ebs_volume_size = 30

user_data = "./_bin/user_data.sh"
instance_tags = { "snapshot" = true }

dns_zone_id = "Z1XJD7SSBKXLC1"
Expand Down
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
# Copyright @ CloudDrove. All Right Reserved.

#Module : Label
#Description : This terraform module is designed to generate consistent label names and # tags for resources. You can use terraform-labels to implement a strict # naming convention.
#Description : This terraform module is designed to generate consistent label names and
# tags for resources. You can use terraform-labels to implement a strict
# naming convention.
module "labels" {
source = "git::https://github.com/clouddrove/terraform-labels.git?ref=tags/0.12.0"

name = var.name
application = var.application
environment = var.environment
label_order = var.label_order
managedby = var.managedby
}

locals {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ variable "tags" {
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}

variable "managedby" {
type = string
default = "anmol@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
}

# Module : EC2 Module
# Description : Terraform EC2 module variables.
variable "ami" {
Expand Down

0 comments on commit c7929a3

Please sign in to comment.