Skip to content

Commit 3a16b34

Browse files
depends on for lambda extras
1 parent de6a682 commit 3a16b34

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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
@@ -22,7 +22,7 @@ jobs:
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
@@ -32,22 +32,3 @@ jobs:
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"

main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

5458
resource 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

0 commit comments

Comments
 (0)