Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing state drift changes across different operating systems when no changes have been made #38

Merged
merged 10 commits into from
May 1, 2024
9 changes: 5 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,14 @@ data "aws_iam_policy_document" "pipeline_updates_policy" {
}

data "archive_file" "notifier_package" {
type = "zip"
source_file = "${path.module}/lambdas/notifier/notifier.py"
output_path = "${path.module}/lambdas/notifier.zip"
type = "zip"
source_file = "${path.module}/lambdas/notifier/notifier.py"
output_file_mode = "0666"
output_path = "${path.module}/lambdas/notifier.zip"
}

resource "aws_lambda_function" "pipeline_notification" {
filename = "${path.module}/lambdas/notifier.zip"
filename = data.archive_file.notifier_package.output_path
function_name = module.this.id
role = aws_iam_role.pipeline_notification.arn
runtime = "python3.8"
Expand Down
Loading