Skip to content

Commit

Permalink
Get KMS-relates envs from SSM
Browse files Browse the repository at this point in the history
This commit modifies the CI script to obtain parameters from SSM which
are needed to run tests with KMS keys.

Signed-off-by: Mark Kirichenko <[email protected]>
  • Loading branch information
atanzu committed Feb 20, 2025
1 parent ff5d3c0 commit e3f35b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ci_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ then
exit 1
fi

# Get KMS key, region, and certificate for KMS tests
export TEST_KMS_KEY_ARN=$(aws ssm get-parameter --name NITRO_CLI_CI_TEST_KMS_KEY_ARN --region us-east-1 | jq -r .Parameter.Value)
if [[ $TEST_KMS_KEY_ARN == "" ]];
then
echo "Invalid TEST_KMS_KEY_ARN"
exit 1
fi
export TEST_CERTIFICATE_PATH=$(pwd)/test_certificate.pem
aws ssm get-parameter --name NITRO_CLI_CI_TEST_KMS_SIGNING_CERT --region us-east-1 | jq -r .Parameter.Value > $TEST_CERTIFICATE_PATH

STATE="pending"
status_update

Expand Down

0 comments on commit e3f35b2

Please sign in to comment.