Closed lorengordon closed 1 year ago
This PR is included in version 4.1.1 :tada:
@antonbabenko You are amazing. π₯
Example output showing the lambda function is waiting for the package to finish:
module.test_create_package.null_resource.archive[0] (local-exec): Base64sha256: mjUxYWr/sarJAcoe9xYIG6+geDQg4Gn9+/h8HNhhtPQ=
module.test_create_package.null_resource.archive[0]: Creation complete after 11s [id=1861059490256417180]
module.test_create_function.module.lambda.aws_lambda_function.this[0]: Creating...
module.test_create_function.module.lambda.aws_lambda_function.this[0]: Still creating... [10s elapsed]
module.test_create_function.module.lambda.aws_lambda_function.this[0]: Creation complete after 12s [id=foo]
I'm going to lock this pull request because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Uses
depends_on
to force the outputlocal_filename
to wait until the package is available, so the output can be relied on to tailor the terraform graph in cases where the package must be available before it is used.Fixes #355
Motivation and Context
See #355
Breaking Changes
I don't believe there are any breaking changes.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request