Skip to content

Commit

Permalink
Merge pull request #2 from clouddrove/CD-147
Browse files Browse the repository at this point in the history
fix labels managedby variables
  • Loading branch information
anmolnagpal committed Mar 24, 2020
2 parents 434a6e3 + 0916e9d commit 1c8ff53
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 95 deletions.
175 changes: 88 additions & 87 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ usage : |-
### Basic Example
```hcl
module "api-gateway" {
source = "git::https://github.com/clouddrove/terraform-aws-api-gateway.git?ref=tags/0.12.0"
source = "git::https://github.com/clouddrove/terraform-aws-api-gateway.git?ref=tags/0.12.2"
name = "api-gateway"
application = "clouddrove"
environment = "test"
Expand Down Expand Up @@ -95,7 +95,7 @@ usage : |-
### Complete Example
```hcl
module "api-gateway" {
source = "git::https://github.com/clouddrove/terraform-aws-api-gateway.git?ref=tags/0.12.0"
source = "git::https://github.com/clouddrove/terraform-aws-api-gateway.git?ref=tags/0.12.2"
name = "api-gateway"
application = "clouddrove"
environment = "test"
Expand Down
2 changes: 1 addition & 1 deletion _example/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ provider "aws" {
}

module "api-gateway" {
source = "git::https://github.com/clouddrove/terraform-aws-api-gateway.git?ref=tags/0.12.0"
source = "../../"
name = "api-gateway"
application = "clouddrove"
environment = "test"
Expand Down
2 changes: 1 addition & 1 deletion _example/complete/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ provider "aws" {
}

module "api-gateway" {
source = "git::https://github.com/clouddrove/terraform-aws-api-gateway.git?ref=tags/0.12.0"
source = "../../"

name = "api-gateway"
application = "clouddrove"
Expand Down
9 changes: 5 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module "labels" {
name = var.name
application = var.application
environment = var.environment
managedby = var.managedby
label_order = var.label_order
}

Expand Down Expand Up @@ -144,7 +145,7 @@ resource "aws_api_gateway_method_response" "options_200" {
"method.response.header.Access-Control-Allow-Credentials" = true
}

depends_on = ["aws_api_gateway_method.options_method"]
depends_on = [aws_api_gateway_method.options_method]
}

resource "aws_api_gateway_integration" "options_integration" {
Expand All @@ -156,7 +157,7 @@ resource "aws_api_gateway_integration" "options_integration" {
type = "MOCK"
content_handling = "CONVERT_TO_TEXT"

depends_on = ["aws_api_gateway_method.options_method"]
depends_on = [aws_api_gateway_method.options_method]
}

resource "aws_api_gateway_integration_response" "options_integration_response" {
Expand All @@ -173,8 +174,8 @@ resource "aws_api_gateway_integration_response" "options_integration_response" {
}

depends_on = [
"aws_api_gateway_method_response.options_200",
"aws_api_gateway_integration.options_integration",
aws_api_gateway_method_response.options_200,
aws_api_gateway_integration.options_integration,
]
}

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 : Api Gateway
# Description : Terraform Api Gateway module variables.
variable "enabled" {
Expand Down

0 comments on commit 1c8ff53

Please sign in to comment.