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
질문됨 2년 전486회 조회
1개 답변
0
수락된 답변

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
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠