Copying files from AWS Appruner to S3

0

I am planning to use AWS Apprunner to run my load test using JMeter.

The Apprunner service is configured to use my github repo which contains only 2 files(Jmx file and shell script which to downloads jmeter and run the load test)— till this part is working fine. However I am looking for option to copy the test result file into S3 bucket.

One option which I could think of is create rest call with API gateway for S3 put and use the curl command within the apprunner container after the test completion.

Also I have set one environment variable while creating Apprunner service - How can I access it in above shell. example: MYTESTNAME = CUSTOMER-VAL

I tried echo $MYTESTNAME - it prints as $MYTESTNAME

Appreciate if someone can help.

anees
feita há 2 anos486 visualizações
1 Resposta
0
Resposta aceita

I was able to figure out the way to run the test and copy the test results to S3 bucket by:

  1. Creating role for apprunner with S3 trust relationship
  2. Installed AWSCLI
  3. After the test execution, I run the aws s3 cp command https://github.com/myanees284/apprunner-jmeter/blob/main/run_test.sh
anees
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas