File tree Expand file tree Collapse file tree 2 files changed +10
-21
lines changed Expand file tree Collapse file tree 2 files changed +10
-21
lines changed Original file line number Diff line number Diff line change 12
12
uses : docker://wata727/tflint
13
13
14
14
fmt :
15
- name : Code Format
15
+ name : code format
16
16
runs-on : ubuntu-latest
17
17
container :
18
18
image : hashicorp/terraform:latest
22
22
terraform fmt --recursive -check=true
23
23
24
24
docs :
25
- name : Pre-Commit-Hook
25
+ name : pre-commit-hook
26
26
runs-on : macOS-latest
27
27
steps :
28
28
- uses : actions/checkout@master
32
32
- name : Check All Files
33
33
run : |
34
34
pre-commit run --all-files
35
-
36
- minimum :
37
- name : Minimum version check
38
- runs-on : ubuntu-latest
39
- container :
40
- image : hashicorp/terraform:0.12.9
41
- steps :
42
- - uses : actions/checkout@master
43
- - name : Validate Code
44
- env :
45
- TF_WARN_OUTPUT_ERRORS : 1
46
- run : |
47
- cat > provider.tf <<~EOS
48
- provider "aws" {
49
- region = "us-west-1"
50
- }
51
- EOS
52
- terraform init
53
- terraform validate -var "alias_name=test"
Original file line number Diff line number Diff line change @@ -49,13 +49,21 @@ resource aws_lambda_function_event_invoke_config this {
49
49
qualifier = aws_lambda_function. this . version
50
50
maximum_event_age_in_seconds = var. event_age_in_seconds
51
51
maximum_retry_attempts = var. retry_attempts
52
+
53
+ depends_on = [
54
+ aws_lambda_function . this
55
+ ]
52
56
}
53
57
54
58
resource aws_lambda_function_event_invoke_config latest {
55
59
function_name = aws_lambda_function. this . function_name
56
60
qualifier = " $LATEST"
57
61
maximum_event_age_in_seconds = var. event_age_in_seconds
58
62
maximum_retry_attempts = var. retry_attempts
63
+
64
+ depends_on = [
65
+ aws_lambda_function . this
66
+ ]
59
67
}
60
68
61
69
# Cloud watch
You can’t perform that action at this time.
0 commit comments