|
3 | 3 |
|
4 | 4 | name: Sample App Deployment - Python S3 |
5 | 5 | on: |
6 | | - workflow_dispatch: # be able to run the workflow on demand |
| 6 | + workflow_dispatch: |
| 7 | + inputs: |
| 8 | + deploy-base-test-apps: |
| 9 | + description: 'Deploy main and remote Python sample apps' |
| 10 | + required: false |
| 11 | + default: true |
| 12 | + type: boolean |
| 13 | + deploy-genai-test-app: |
| 14 | + description: 'Deploy GenAI LangChain sample app' |
| 15 | + required: false |
| 16 | + default: true |
| 17 | + type: boolean |
7 | 18 |
|
8 | 19 | permissions: |
9 | 20 | id-token: write |
@@ -47,35 +58,43 @@ jobs: |
47 | 58 | aws-region: ${{ matrix.aws-region }} |
48 | 59 |
|
49 | 60 | - name: Build Sample App Zip |
| 61 | + if: inputs.deploy-base-test-apps != false |
50 | 62 | working-directory: sample-apps/python |
51 | 63 | run: zip -r python-sample-app.zip . |
52 | 64 |
|
53 | 65 | - name: Upload to S3 |
| 66 | + if: inputs.deploy-base-test-apps != false |
54 | 67 | working-directory: sample-apps/python |
55 | 68 | run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-sample-app.zip --key python-sample-app.zip |
56 | 69 |
|
57 | 70 | - name: Build Gen AI Sample App Zip |
| 71 | + if: inputs.deploy-genai-test-app != false |
58 | 72 | working-directory: sample-apps/python/genai_service |
59 | 73 | run: zip -r python-gen-ai-sample-app.zip . |
60 | 74 |
|
61 | 75 | - name: Upload Gen AI Sample App to S3 |
| 76 | + if: inputs.deploy-genai-test-app != false |
62 | 77 | working-directory: sample-apps/python/genai_service |
63 | 78 | run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-gen-ai-sample-app.zip --key python-genai-sample-app.zip |
64 | 79 |
|
65 | 80 | - name: Build Lambda Sample App |
| 81 | + if: inputs.deploy-base-test-apps != false |
66 | 82 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
67 | 83 | with: |
68 | 84 | repository: 'aws-observability/aws-otel-python-instrumentation' |
69 | 85 | - name: Build sample lambda function |
| 86 | + if: inputs.deploy-base-test-apps != false |
70 | 87 | shell: bash |
71 | 88 | run: ./package-lambda-function.sh |
72 | 89 | working-directory: lambda-layer/sample-apps |
73 | 90 |
|
74 | 91 | - name: Upload to Lambda Sample App to S3 |
| 92 | + if: inputs.deploy-base-test-apps != false |
75 | 93 | working-directory: lambda-layer/sample-apps |
76 | 94 | run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./build/function.zip --key pyfunction.zip |
77 | 95 |
|
78 | 96 | python-zip-adaptive-sampling: |
| 97 | + if: inputs.deploy-base-test-apps != false |
79 | 98 | runs-on: ubuntu-latest |
80 | 99 | steps: |
81 | 100 | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
|
0 commit comments