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 1212 uses : docker://wata727/tflint
1313
1414 fmt :
15- name : Code Format
15+ name : code format
1616 runs-on : ubuntu-latest
1717 container :
1818 image : hashicorp/terraform:latest
2222 terraform fmt --recursive -check=true
2323
2424 docs :
25- name : Pre-Commit-Hook
25+ name : pre-commit-hook
2626 runs-on : macOS-latest
2727 steps :
2828 - uses : actions/checkout@master
3232 - name : Check All Files
3333 run : |
3434 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 {
4949 qualifier = aws_lambda_function. this . version
5050 maximum_event_age_in_seconds = var. event_age_in_seconds
5151 maximum_retry_attempts = var. retry_attempts
52+
53+ depends_on = [
54+ aws_lambda_function . this
55+ ]
5256}
5357
5458resource aws_lambda_function_event_invoke_config latest {
5559 function_name = aws_lambda_function. this . function_name
5660 qualifier = " $LATEST"
5761 maximum_event_age_in_seconds = var. event_age_in_seconds
5862 maximum_retry_attempts = var. retry_attempts
63+
64+ depends_on = [
65+ aws_lambda_function . this
66+ ]
5967}
6068
6169# Cloud watch
You can’t perform that action at this time.
0 commit comments