Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes deployment problems with cgo #28

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Note: Once done running all python commands call `deactivate` to stop using the
1. Cd to the root directory of the project.
1. Run this command to install a local copy of the Python libraries required for the lambdas.
* `pip3 install -r lambda-functions/state_machine_lambdas/requirements.txt -t lambda-functions/state_machine_lambdas --upgrade`
1. Run `sam build`
1. Run `GOOS=linux GOARCH=amd64 CGO_ENABLED=0 sam build`
1. Optional step: Run `python3 -m unittest` within the test containing directory to execute all unit tests in python
1. Optional step: If you are a developer and want to invoke the Lambda functions locally, run `sam local invoke <Logical ID of the function>`

Expand Down
2 changes: 1 addition & 1 deletion bin/bash/deploy-tre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pip3 install -r lambda-functions/state_machine_lambdas/requirements.txt \
-t lambda-functions/state_machine_lambdas \
--upgrade

sam build
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 sam build

echo "Deploying the bootstrap bucket stack."
source $SCRIPT_DIR/deploy-bootstrap-bucket-stack.sh
Expand Down