File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ module "lamda_gha" {
18
18
19
19
default_conditions = var. default_conditions
20
20
21
- conditions = (var. github_repo . branches != []) ? [
21
+ conditions = length (var. github_repo . branches ) != 0 ? [
22
22
{
23
23
test = " StringLike"
24
24
variable = " token.actions.githubusercontent.com:sub"
Original file line number Diff line number Diff line change @@ -38,22 +38,6 @@ variable "default_conditions" {
38
38
default = [" allow_main" , " allow_environment" ]
39
39
}
40
40
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
-
57
41
# Refer https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/variables.tf for additional vars
58
42
# #################
59
43
# Lambda Function
You can’t perform that action at this time.
0 commit comments