Skip to content

Commit

Permalink
Merge pull request #100 from lorengordon/skip-vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored Nov 23, 2020
2 parents b038440 + 9067a38 commit 3a1d582
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0
current_version = 3.0.0
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
5 changes: 0 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ resource "aws_config_config_rule" "this" {
]
}

module "vendor" {
count = local.custom_lambda ? 1 : 0
source = "git::https://github.com/plus3it/aws-config-rules.git?ref=e6fe305462333b26b55b30fc8586c4cf6f853907"
}

module "custom_lambda" {
count = local.custom_lambda ? 1 : 0
source = "git::https://github.com/plus3it/terraform-aws-lambda.git?ref=v1.2.0"
Expand Down
6 changes: 5 additions & 1 deletion tests/create_custom_config_rule/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ module "create_config_rules" {
name = "config_rule_iam_access_key_rotation_check"
policy = data.aws_iam_policy_document.lambda_iam_access_key_rotation_check.json
runtime = "nodejs10.x"
source_path = "${path.module}/.terraform/modules/create_config_rules.vendor/node/iam_access_key_rotation-triggered.js"
source_path = "${path.module}/.terraform/modules/vendor/node/iam_access_key_rotation-triggered.js"
reserved_concurrent_executions = -1
tags = {}
timeout = 15
}
}

module "vendor" {
source = "git::https://github.com/plus3it/aws-config-rules.git?ref=e6fe305462333b26b55b30fc8586c4cf6f853907"
}

module "config" {
source = "git::https://github.com/plus3it/terraform-aws-tardigrade-config.git?ref=1.0.7"

Expand Down
6 changes: 5 additions & 1 deletion tests/create_legacy_config_rules/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ module "create_config_rules" {
lambda = try(local.lambdas[each.key], null)
}

module "vendor" {
source = "git::https://github.com/plus3it/aws-config-rules.git?ref=e6fe305462333b26b55b30fc8586c4cf6f853907"
}

module "config" {
source = "git::https://github.com/plus3it/terraform-aws-tardigrade-config.git?ref=1.0.7"

Expand Down Expand Up @@ -314,7 +318,7 @@ locals {
})
}

source_path = "${path.module}/.terraform/modules/create_config_rules.vendor"
source_path = "${path.module}/.terraform/modules/vendor"

defaults = {
config_rule = {
Expand Down

0 comments on commit 3a1d582

Please sign in to comment.