Skip to content

Commit

Permalink
ci: replace archive_file data source with resource
Browse files Browse the repository at this point in the history
  • Loading branch information
simonknittel committed May 17, 2024
1 parent 7976223 commit 93fc906
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terraform/modules/eventbridge-sqs-lambda/function.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ resource "aws_lambda_provisioned_concurrency_config" "main" {
qualifier = aws_lambda_function.main.version
}

data "archive_file" "main" {
# The resource is marked as deprecated, however, we need to use this over the data source one since we
# export the plan and reuse it later. This is not possible with the data source.
# See https://github.com/hashicorp/terraform-provider-archive/issues/218
resource "archive_file" "main" {
source_dir = "${path.module}/placeholder"
output_path = "${path.module}/dist.zip"
type = "zip"
Expand Down

0 comments on commit 93fc906

Please sign in to comment.