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

Fix python layer release script #733

Merged
merged 1 commit into from
May 31, 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
4 changes: 2 additions & 2 deletions .github/workflows/release-layer-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Show directory contents
run: |
ls -al
working-directory: python/sample-apps
working-directory: python/src

- name: Save Python SDK Version
id: save-python-sdk-version
Expand All @@ -42,7 +42,7 @@ jobs:
name: Save assembled layer to build
with:
name: opentelemetry-python-layer.zip
path: python/sample-apps/opentelemetry-python-layer.zip
path: python/src/opentelemetry-python-layer.zip

publish-layer:
uses: ./.github/workflows/layer-publish.yml
Expand Down
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Scripts and files used to build AWS Lambda Layers for running OpenTelemetry on A
* [Docker](https://docs.docker.com/get-docker)
3. Run aws configure to [set aws credential(with administrator permissions)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html#serverless-sam-cli-install-mac-iam-permissions) and default region.
4. Download a local copy of this repository from Github.
5. `cd python/sample-apps`
5. `cd python/src`
6. If you just want to create a zip file with the OpenTelemetry Python AWS Lambda layer, then use the `-b true` option: `bash run.sh -n <LAYER_NAME_HERE> -b true`
7. If you want to create the layer and automatically publish it, use no options: `bash run.sh`
2 changes: 2 additions & 0 deletions utils/sam/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ main() {
fi
}

rm -rf .aws-sam

main "$@"