Skip to content

Commit

Permalink
install coreutils on ec2 instance
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed Apr 24, 2024
1 parent 3b2bc18 commit a5bfb7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/ci/cdk/cdk/ssm/general_test_run_ssm_document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ mainSteps:
# install aws-cli
- killall apt apt-get
- apt-get update
- apt-get -y install unzip
- apt-get -y install unzip coreutils
- curl "https://awscli.amazonaws.com/awscli-exe-linux-${AWS_CLI_PREFIX}64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- ./aws/install
# Check if the source code is on S3, otherwise treat the source as a PR.
- >
if [[ "$(expr substr "$SOURCE" 1 16)" == 'aws-lc-codebuild' ]]; then
if [[ "$(expr substr "$SOURCE" 1 16)" == "aws-lc-codebuild" ]]; then
aws s3api get-object --bucket {S3_BUCKET} --key "${SOURCE##{S3_BUCKET}/}" aws-lc-pr.zip
unzip aws-lc-pr.zip
else
Expand Down
7 changes: 4 additions & 3 deletions tests/ci/run_ec2_test_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ cloudwatch_group_name="aws-lc-ci-ec2-test-framework-cw-logs"
ec2_test_ssm_command_id=$(run_ssm_command "${ssm_doc_name}" "${instance_id}" ${cloudwatch_group_name})

run_url="https://${AWS_REGION}.console.aws.amazon.com/cloudwatch/home?region=${AWS_REGION}\
#logsV2:log-groups/log-group/${cloudwatch_group_name}/log-events/\
${ec2_test_ssm_command_id}\$252F${instance_id}\$252FrunShellScript\$252Fstdout"
#logsV2:log-groups/log-group/${cloudwatch_group_name}/log-events/${ec2_test_ssm_command_id}\$252F${instance_id}\$252FrunShellScript\$252F"

echo "Actual Run in EC2 can be observered at CloudWatch URL: ${run_url}stdout"
echo "Error outputs can be observered at CloudWatch URL: ${run_url}stderr"

echo "Actual Run in EC2 can be observered at CloudWatch URL: ${run_url}"

# Give some time for the commands to run, total wait time is 90 minutes.
done=false
Expand Down

0 comments on commit a5bfb7b

Please sign in to comment.