Skip to content

Commit 24ec84e

Browse files
committed
Fix tflint
1 parent 2a760c0 commit 24ec84e

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

github_action.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "lamda_gha" {
1818

1919
default_conditions = var.default_conditions
2020

21-
conditions = (var.github_repo.branches != []) ? [
21+
conditions = length(var.github_repo.branches) != 0 ? [
2222
{
2323
test = "StringLike"
2424
variable = "token.actions.githubusercontent.com:sub"

variables.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,6 @@ variable "default_conditions" {
3838
default = ["allow_main", "allow_environment"]
3939
}
4040

41-
variable "conditions" {
42-
description = "(Optional) Additonal conditions for checking the OIDC claim."
43-
type = list(object({
44-
test = string
45-
variable = string
46-
values = list(string)
47-
}))
48-
default = []
49-
}
50-
51-
variable "github_environments" {
52-
description = "(Optional) Allow GitHub action to deploy to all (default) or to one of the environments in the list."
53-
type = list(string)
54-
default = ["*"]
55-
}
56-
5741
# Refer https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/variables.tf for additional vars
5842
##################
5943
# Lambda Function

0 commit comments

Comments
 (0)