We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5343a88 commit 4747847Copy full SHA for 4747847
examples/build-package/main.tf
@@ -471,6 +471,15 @@ module "lambda_layer_poetry" {
471
path = "${path.module}/../fixtures/python-app-poetry"
472
poetry_install = true
473
poetry_tmp_dir = "${path.cwd}/../fixtures"
474
+ # Patterns work correctly with poetry_install - only poetry files are needed
475
+ # The installed dependencies will be in the layer, but source files will be excluded
476
+ patterns = [
477
+ "!ignore_please.txt", # Exclude this file
478
+ "!index.py", # Exclude source code
479
+ "pyproject.toml", # Include poetry config
480
+ "poetry.lock", # Include lock file
481
+ "poetry.toml" # Include poetry settings
482
+ ]
483
}
484
]
485
hash_extra = "extra-hash-to-prevent-conflicts-with-module.package_dir"
0 commit comments