Skip to content
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
9 changes: 8 additions & 1 deletion .github/workflows/dotnet-ec2-adot-sigv4-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
required: false
default: 'aws-opentelemetry-distro'
type: string
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string

permissions:
id-token: write
Expand All @@ -30,7 +35,8 @@ env:
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
DOTNET_VERSION: ${{ inputs.dotnet-version }}
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-us-east-1/dotnet-sample-app-${{ inputs.dotnet-version }}.zip
SAMPLE_APP_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-us-east-1/dotnet-sample-app-${{ inputs.dotnet-version }}.zip
TRAFFIC_GENERATOR_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-us-east-1/traffic-generator.zip
METRIC_NAMESPACE: ApplicationSignals
LOG_GROUP_NAME: aws/spans
ADOT_DISTRO_NAME: ${{ inputs.staging_distro_name }}
Expand Down Expand Up @@ -113,6 +119,7 @@ jobs:
-var="sample_app_zip=${{ env.SAMPLE_APP_ZIP }}" \
-var="get_adot_distro_command=${{ env.GET_ADOT_DISTRO_COMMAND }}" \
-var="language_version=${{ env.DOTNET_VERSION }}" \
-var="traffic_generator_zip=s3://${{ env.TRAFFIC_GENERATOR_ZIP }}" \
|| deployment_failed=$?

if [ $deployment_failed -eq 1 ]; then
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/dotnet-ec2-asg-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
caller-workflow-name:
required: true
type: string
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.dotnet-ec2-asg.outputs.job-started }}
Expand All @@ -32,7 +37,8 @@ env:
E2E_TEST_AWS_REGION: ${{ inputs.aws-region }}
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/dotnet-sample-app.zip
SAMPLE_APP_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/dotnet-sample-app.zip
TRAFFIC_GENERATOR_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/traffic-generator.zip
METRIC_NAMESPACE: ApplicationSignals
LOG_GROUP_NAME: /aws/application-signals/data
ADOT_DISTRO_NAME: ${{ inputs.staging_distro_name }}
Expand Down Expand Up @@ -140,6 +146,7 @@ jobs:
-var="sample_app_zip=${{ env.SAMPLE_APP_ZIP }}" \
-var="get_cw_agent_rpm_command=${{ env.GET_CW_AGENT_RPM_COMMAND }}" \
-var="get_adot_distro_command=${{ env.GET_ADOT_DISTRO_COMMAND }}" \
-var="traffic_generator_zip=s3://${{ env.TRAFFIC_GENERATOR_ZIP }}" \
|| deployment_failed=$?

if [ $deployment_failed -eq 1 ]; then
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/dotnet-ec2-default-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
required: false
type: string
default: '8.0'
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.dotnet-ec2-default.outputs.job-started }}
Expand All @@ -38,7 +43,8 @@ env:
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
DOTNET_VERSION: ${{ inputs.dotnet-version }}
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/dotnet-sample-app-${{ inputs.dotnet-version }}.zip
SAMPLE_APP_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/dotnet-sample-app-${{ inputs.dotnet-version }}.zip
TRAFFIC_GENERATOR_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/traffic-generator.zip
METRIC_NAMESPACE: ApplicationSignals
LOG_GROUP_NAME: /aws/application-signals/data
ADOT_DISTRO_NAME: ${{ inputs.staging_distro_name }}
Expand Down Expand Up @@ -145,6 +151,7 @@ jobs:
-var="aws_region=${{ env.E2E_TEST_AWS_REGION }}" \
-var="test_id=${{ env.TESTING_ID }}" \
-var="sample_app_zip=${{ env.SAMPLE_APP_ZIP }}" \
-var="traffic_generator_zip=s3://${{ env.TRAFFIC_GENERATOR_ZIP }}" \
-var="get_cw_agent_rpm_command=${{ env.GET_CW_AGENT_RPM_COMMAND }}" \
-var="get_adot_distro_command=${{ env.GET_ADOT_DISTRO_COMMAND }}" \
-var="language_version=${{ env.DOTNET_VERSION }}" \
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/dotnet-ec2-nuget-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
caller-workflow-name:
required: true
type: string
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.dotnet-ec2-nuget.outputs.job-started }}
Expand All @@ -32,7 +37,8 @@ env:
E2E_TEST_AWS_REGION: ${{ inputs.aws-region }}
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/dotnet-sample-app.zip
SAMPLE_APP_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/dotnet-sample-app.zip
TRAFFIC_GENERATOR_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/traffic-generator.zip
METRIC_NAMESPACE: ApplicationSignals
LOG_GROUP_NAME: /aws/application-signals/data
ADOT_DISTRO_NAME: ${{ inputs.staging_distro_name }}
Expand Down Expand Up @@ -129,6 +135,7 @@ jobs:
-var="aws_region=${{ env.E2E_TEST_AWS_REGION }}" \
-var="test_id=${{ env.TESTING_ID }}" \
-var="sample_app_zip=${{ env.SAMPLE_APP_ZIP }}" \
-var="traffic_generator_zip=s3://${{ env.TRAFFIC_GENERATOR_ZIP }}" \
-var="get_cw_agent_rpm_command=${{ env.GET_CW_AGENT_RPM_COMMAND }}" \
|| deployment_failed=$?

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/dotnet-ec2-windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
caller-workflow-name:
required: true
type: string
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.dotnet-ec2-windows.outputs.job-started }}
Expand All @@ -32,7 +37,7 @@ env:
E2E_TEST_AWS_REGION: ${{ inputs.aws-region }}
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
SAMPLE_APP_ZIP: "aws s3 cp s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/dotnet-sample-app.zip ./dotnet-sample-app.zip"
SAMPLE_APP_ZIP: "aws s3 cp s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/dotnet-sample-app.zip ./dotnet-sample-app.zip"
METRIC_NAMESPACE: ApplicationSignals
LOG_GROUP_NAME: /aws/application-signals/data
ADOT_DISTRO_NAME: ${{ inputs.staging_distro_name }}
Expand Down Expand Up @@ -140,6 +145,7 @@ jobs:
-var="sample_app_zip=${{ env.SAMPLE_APP_ZIP }}" \
-var="get_cw_agent_msi_command=${{ env.GET_CW_AGENT_MSI_COMMAND }}" \
-var="get_adot_distro_command=${{ env.GET_ADOT_DISTRO_COMMAND }}" \
-var="sample_app_bucket_prefix=${{ inputs.sample-app-bucket-prefix }}" \
|| deployment_failed=$?

if [ $deployment_failed -eq 1 ]; then
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/dotnet-k8s-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
cw-agent-operator-tag:
required: false
type: string
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.dotnet-k8s.outputs.job-started }}
Expand Down Expand Up @@ -117,8 +122,8 @@ jobs:
sed -i 's#\${IMAGE}#${{ env.ACCOUNT_ID }}.dkr.ecr.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/${{ env.DOTNET_MAIN_SAMPLE_APP_IMAGE }}#' dotnet-frontend-service-depl.yaml
sed -i 's#\${TESTING_ID}#${{ env.TESTING_ID }}#' dotnet-remote-service-depl.yaml
sed -i 's#\${IMAGE}#${{ env.ACCOUNT_ID }}.dkr.ecr.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/${{ env.DOTNET_REMOTE_SAMPLE_APP_IMAGE }}#' dotnet-remote-service-depl.yaml
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-frontend-service-depl-${{ env.TESTING_ID }}.yaml --body dotnet-frontend-service-depl.yaml
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-remote-service-depl-${{ env.TESTING_ID }}.yaml --body dotnet-remote-service-depl.yaml
aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-frontend-service-depl-${{ env.TESTING_ID }}.yaml --body dotnet-frontend-service-depl.yaml
aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-remote-service-depl-${{ env.TESTING_ID }}.yaml --body dotnet-remote-service-depl.yaml

- name: Set up terraform
uses: ./.github/workflows/actions/execute_and_retry
Expand Down Expand Up @@ -156,7 +161,8 @@ jobs:
-var="host=${{ env.MAIN_SERVICE_ENDPOINT }}" \
-var="repository=${{ github.event.repository.name }}" \
-var="patch_image_arn=${{ env.PATCH_IMAGE_ARN }}" \
-var="release_testing_ecr_account=${{ env.RELEASE_TESTING_ECR_ACCOUNT }}"
-var="release_testing_ecr_account=${{ env.RELEASE_TESTING_ECR_ACCOUNT }}" \
-var="sample_app_bucket_prefix=${{ inputs.sample-app-bucket-prefix }}"

- name: Get Main and Remote Service IP
run: |
Expand Down Expand Up @@ -275,5 +281,5 @@ jobs:
if: always()
continue-on-error: true
run: |
aws s3api delete-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-frontend-service-depl-${{ env.TESTING_ID }}.yaml
aws s3api delete-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-remote-service-depl-${{ env.TESTING_ID }}.yaml
aws s3api delete-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-frontend-service-depl-${{ env.TESTING_ID }}.yaml
aws s3api delete-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ env.E2E_TEST_AWS_REGION }} --key dotnet-remote-service-depl-${{ env.TESTING_ID }}.yaml
7 changes: 6 additions & 1 deletion .github/workflows/dotnet-lambda-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
caller-workflow-name:
required: true
type: string
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.dotnet-lambda-default.outputs.job-started }}
Expand All @@ -29,7 +34,7 @@ env:
CALLER_WORKFLOW_NAME: ${{ inputs.caller-workflow-name }}
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/dotnet-function.zip
SAMPLE_APP_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/dotnet-function.zip
METRIC_NAMESPACE: ApplicationSignals
LOG_GROUP_NAME: /aws/application-signals/data
TEST_RESOURCES_FOLDER: ${GITHUB_WORKSPACE}
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/dotnet-sample-app-s3-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
name: Sample App Deployment - Dotnet S3
on:
workflow_dispatch: # be able to run the workflow on demand
inputs:
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string

permissions:
id-token: write
Expand Down Expand Up @@ -94,14 +100,14 @@ jobs:

- name: Upload to S3
working-directory: sample-apps/dotnet
run: aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ matrix.aws-region }} --body ./dotnet-sample-app-${DOTNET_VERSION}.zip --key dotnet-sample-app-${DOTNET_VERSION}.zip
run: aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ matrix.aws-region }} --body ./dotnet-sample-app-${DOTNET_VERSION}.zip --key dotnet-sample-app-${DOTNET_VERSION}.zip

- name: Upload Windows Script to S3
working-directory: sample-apps/dotnet
working-directory: sample-apps/dotnet`
run: |
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ matrix.aws-region }} --body ./dotnet-ec2-win-main-setup.ps1 --key dotnet-ec2-win-main-setup.ps1
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ matrix.aws-region }} --body ./dotnet-ec2-win-remote-setup.ps1 --key dotnet-ec2-win-remote-setup.ps1
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ matrix.aws-region }} --body ./amazon-cloudwatch-agent.json --key amazon-cloudwatch-agent.json
aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ matrix.aws-region }} --body ./dotnet-ec2-win-main-setup.ps1 --key dotnet-ec2-win-main-setup.ps1
aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ matrix.aws-region }} --body ./dotnet-ec2-win-remote-setup.ps1 --key dotnet-ec2-win-remote-setup.ps1
aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ matrix.aws-region }} --body ./amazon-cloudwatch-agent.json --key amazon-cloudwatch-agent.json

build-and-upload-lambda-sample-app:
strategy:
Expand Down Expand Up @@ -153,4 +159,4 @@ jobs:

- name: Upload Lambda Sample App to S3
working-directory: sample-applications/lambda-test-apps/SimpleLambdaFunction
run: aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ matrix.aws-region }} --body ./src/SimpleLambdaFunction/bin/Release/net8.0/SimpleLambdaFunction.zip --key dotnet-function.zip
run: aws s3api put-object --bucket ${{ inputs.sample-app-bucket-prefix }}-${{ matrix.aws-region }} --body ./src/SimpleLambdaFunction/bin/Release/net8.0/SimpleLambdaFunction.zip --key dotnet-function.zip
10 changes: 8 additions & 2 deletions .github/workflows/java-ec2-adot-sigv4-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
required: false
type: string
default: "x86_64"
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.java-ec2-adot-sigv4.outputs.job-started }}
Expand Down Expand Up @@ -123,11 +128,12 @@ jobs:
terraform apply -auto-approve \
-var="aws_region=${{ env.E2E_TEST_AWS_REGION }}" \
-var="test_id=${{ env.TESTING_ID }}" \
-var="sample_app_jar=s3://aws-appsignals-sample-app-prod-us-east-1/java-main-service-v${{ env.JAVA_VERSION }}.jar" \
-var="sample_remote_app_jar=s3://aws-appsignals-sample-app-prod-us-east-1/java-remote-service-v${{ env.JAVA_VERSION }}.jar" \
-var="sample_app_jar=s3://${{ inputs.sample-app-bucket-prefix }}-us-east-1/java-main-service-v${{ env.JAVA_VERSION }}.jar" \
-var="sample_remote_app_jar=s3://${{ inputs.sample-app-bucket-prefix }}-us-east-1/java-remote-service-v${{ env.JAVA_VERSION }}.jar" \
-var="get_adot_jar_command=${{ env.GET_ADOT_JAR_COMMAND }}" \
-var="language_version=${{ env.JAVA_VERSION }}" \
-var="cpu_architecture=${{ env.CPU_ARCHITECTURE }}" \
-var="traffic_generator_zip=s3://${{ inputs.sample-app-bucket-prefix }}-us-east-1/traffic-generator.zip" \
|| deployment_failed=$?

if [ $deployment_failed -eq 1 ]; then
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/java-ec2-asg-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
required: false
type: string
default: "x86_64"
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.java-ec2-asg.outputs.job-started }}
Expand All @@ -39,8 +44,9 @@ env:
CALLER_WORKFLOW_NAME: ${{ inputs.caller-workflow-name }}
JAVA_VERSION: ${{ inputs.java-version }}
CPU_ARCHITECTURE: ${{ inputs.cpu-architecture }}
SAMPLE_APP_FRONTEND_SERVICE_JAR: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/java-main-service-v${{ inputs.java-version }}.jar
SAMPLE_APP_REMOTE_SERVICE_JAR: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/java-remote-service-v${{ inputs.java-version }}.jar
SAMPLE_APP_FRONTEND_SERVICE_JAR: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/java-main-service-v${{ inputs.java-version }}.jar
SAMPLE_APP_REMOTE_SERVICE_JAR: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/java-remote-service-v${{ inputs.java-version }}.jar
TRAFFIC_GENERATOR_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/traffic-generator.zip
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
METRIC_NAMESPACE: ApplicationSignals
Expand Down Expand Up @@ -155,6 +161,7 @@ jobs:
-var="test_id=${{ env.TESTING_ID }}" \
-var="sample_app_jar=${{ env.SAMPLE_APP_FRONTEND_SERVICE_JAR }}" \
-var="sample_remote_app_jar=${{ env.SAMPLE_APP_REMOTE_SERVICE_JAR }}" \
-var="traffic_generator_zip=s3://${{ env.TRAFFIC_GENERATOR_ZIP }}" \
-var="get_cw_agent_rpm_command=${{ env.GET_CW_AGENT_RPM_COMMAND }}" \
-var="get_adot_jar_command=${{ env.GET_ADOT_JAR_COMMAND }}" \
-var="language_version=${{ env.JAVA_VERSION }}" \
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/java-ec2-default-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
required: false
type: string
default: 'github'
sample-app-bucket-prefix:
description: "Prefix for S3 bucket holding sample app files"
required: false
default: 'aws-appsignals-sample-app-prod'
type: string
outputs:
job-started:
value: ${{ jobs.java-ec2-default.outputs.job-started }}
Expand All @@ -44,8 +49,9 @@ env:
JAVA_VERSION: ${{ inputs.java-version }}
OTEL_SOURCE: ${{ inputs.otel-source }}
CPU_ARCHITECTURE: ${{ inputs.cpu-architecture }}
SAMPLE_APP_FRONTEND_SERVICE_JAR: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/java-main-service-v${{ inputs.java-version }}.jar
SAMPLE_APP_REMOTE_SERVICE_JAR: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/java-remote-service-v${{ inputs.java-version }}.jar
SAMPLE_APP_FRONTEND_SERVICE_JAR: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/java-main-service-v${{ inputs.java-version }}.jar
SAMPLE_APP_REMOTE_SERVICE_JAR: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/java-remote-service-v${{ inputs.java-version }}.jar
TRAFFIC_GENERATOR_ZIP: s3://${{ inputs.sample-app-bucket-prefix }}-${{ inputs.aws-region }}/traffic-generator.zip
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
METRIC_NAMESPACE: ApplicationSignals
Expand Down Expand Up @@ -168,6 +174,7 @@ jobs:
-var="get_adot_jar_command=${{ env.GET_ADOT_JAR_COMMAND }}" \
-var="language_version=${{ env.JAVA_VERSION }}" \
-var="cpu_architecture=${{ env.CPU_ARCHITECTURE }}" \
-var="traffic_generator_zip=s3://${{ env.TRAFFIC_GENERATOR_ZIP }}" \
|| deployment_failed=$?

if [ $deployment_failed -eq 1 ]; then
Expand Down
Loading