Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created January 13, 2025 02:08
Show Gist options
  • Select an option

  • Save KyMidd/6f6bf865acdaf9dbb92c858a687c33a6 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/6f6bf865acdaf9dbb92c858a687c33a6 to your computer and use it in GitHub Desktop.
# 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