-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update lambda module and bump Terraform/AWS provider versions (#…
…151)
- Loading branch information
1 parent
6b7db5d
commit 0a1fae8
Showing
16 changed files
with
103 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Unit Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
paths: | ||
- 'functions/**' | ||
- '.github/workflows/unit-test.yml' | ||
|
||
defaults: | ||
run: | ||
working-directory: functions | ||
|
||
jobs: | ||
test: | ||
name: Execute unit tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install pipenv | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pipenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ terraform.rc | |
builds/ | ||
__pycache__/ | ||
functions/pytest.ini | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
terraform { | ||
required_version = ">= 0.13.0" | ||
required_version = ">= 0.13.1" | ||
|
||
required_providers { | ||
aws = ">= 2.35" | ||
random = ">= 2" | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 3.61" | ||
} | ||
random = { | ||
source = "hashicorp/random" | ||
version = ">= 2.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
terraform { | ||
required_version = ">= 0.13.0" | ||
required_version = ">= 0.13.1" | ||
|
||
required_providers { | ||
aws = ">= 2.35" | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 3.61" | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
output "this_slack_topic_arn" { | ||
output "slack_topic_arn" { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
antonbabenko
Member
|
||
description = "The ARN of the SNS topic from which messages will be sent to Slack" | ||
value = local.sns_topic_arn | ||
} | ||
|
@@ -15,30 +15,30 @@ output "lambda_iam_role_name" { | |
|
||
output "notify_slack_lambda_function_arn" { | ||
description = "The ARN of the Lambda function" | ||
value = module.lambda.this_lambda_function_arn | ||
value = module.lambda.lambda_function_arn | ||
} | ||
|
||
output "notify_slack_lambda_function_name" { | ||
description = "The name of the Lambda function" | ||
value = module.lambda.this_lambda_function_name | ||
value = module.lambda.lambda_function_name | ||
} | ||
|
||
output "notify_slack_lambda_function_invoke_arn" { | ||
description = "The ARN to be used for invoking Lambda function from API Gateway" | ||
value = module.lambda.this_lambda_function_invoke_arn | ||
value = module.lambda.lambda_function_invoke_arn | ||
} | ||
|
||
output "notify_slack_lambda_function_last_modified" { | ||
description = "The date Lambda function was last modified" | ||
value = module.lambda.this_lambda_function_last_modified | ||
value = module.lambda.lambda_function_last_modified | ||
} | ||
|
||
output "notify_slack_lambda_function_version" { | ||
description = "Latest published version of your Lambda function" | ||
value = module.lambda.this_lambda_function_version | ||
value = module.lambda.lambda_function_version | ||
} | ||
|
||
output "lambda_cloudwatch_log_group_arn" { | ||
description = "The Amazon Resource Name (ARN) specifying the log group" | ||
value = element(concat(aws_cloudwatch_log_group.lambda.*.arn, [""]), 0) | ||
value = try(aws_cloudwatch_log_group.lambda[0].arn, "") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
terraform { | ||
required_version = ">= 0.13.0" | ||
required_version = ">= 0.13.1" | ||
|
||
required_providers { | ||
aws = ">= 2.35" | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 3.61" | ||
} | ||
} | ||
} |
What is the policy for breaking change on a point release?
We consume this output in our TF deploys for various monitoring/alarming solutions as a central point to send messages from. By renaming it, we had to scramble to pin the version to a minor release. We had assumed (incorrectly) that point releases wouldn't have breaking changes to their interface.
Don't get me wrong, I appreciate the work everybody is doing, and agree that the output was previously named oddly, but this output caused an unexpected failure when it was changed on a minor release.