Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 77994ff

Browse files
authored
Create entrypoint.sh
1 parent 4143e2c commit 77994ff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

entrypoint/entrypoint.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh -l
2+
3+
set -e
4+
5+
AWS_ACCESS_KEY_ID=$1
6+
AWS_SECRET_ACCESS_KEY=$2
7+
AWS_REGION=$3
8+
ASSESSMENT_RUN_ARN=$4
9+
10+
# Configure AWS CLI
11+
aws configure set aws_access_key_id "$AWS_ACCESS_KEY_ID"
12+
aws configure set aws_secret_access_key "$AWS_SECRET_ACCESS_KEY"
13+
aws configure set region "$AWS_REGION"
14+
15+
# Run the main Python script
16+
python3 /path/to/your/main_script.py --aws-access-key-id "$AWS_ACCESS_KEY_ID" --aws-secret-access-key "$AWS_SECRET_ACCESS_KEY" --aws-region "$AWS_REGION" --assessment-run-arn "$ASSESSMENT_RUN_ARN"

0 commit comments

Comments
 (0)