-
-
Save KyMidd/6f6bf865acdaf9dbb92c858a687c33a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Create new python 3.12 venv | |
| python3.12 -m venv . | |
| # Activate new env | |
| source ./bin/activate | |
| # Remove old files and create new ones | |
| rm -rf lambda/slack_bolt | |
| mkdir -p lambda/slack_bolt/python/lib/python3.12/site-packages/ | |
| pip3 install slack_bolt -t lambda/slack_bolt/python/lib/python3.12/site-packages/. --no-cache-dir | |
| */ | |
| # Committing the zip file directly, rather than creating it, so don't have to commit huge number of files | |
| # data "archive_file" "slack_bolt" { | |
| # type = "zip" | |
| # source_dir = "${path.module}/slack_bolt" | |
| # output_path = "${path.module}/slack_bolt_layer.zip" | |
| # } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment