AWS IoT FleetWise S3 Upload

0

Hello AWS people. https://aws.amazon.com/ko/blogs/iot/announcing-aws-iot-fleetwise-object-storage-in-amazon-s3/

I'm wondering how to upload to S3 on IoT FleetWise. I checked the demo.sh file on Github. Should I create a CLI that I need to upload to S3 within the shell script? Or does it automatically upload to S3 when I deploy the campaign?

The code below is the part I upload to S3 from the demo.sh file I checked. `if ${S3_UPLOAD}; then DELAY=1200 echo "Waiting 20 minutes for data to be collected and uploaded to S3..." sleep ${DELAY}

echo "Downloading files from S3..."
S3_URL="s3://${BUCKET_NAME}/${NAME}-campaign-s3-${S3_SUFFIX}/processed-data/"
if ! COLLECTED_FILES=`aws s3 ls --recursive ${S3_URL}`; then
    echo "Error: no collected data was found at ${S3_URL}"
    exit -1
fi
echo "${COLLECTED_FILES}" | while read LINE; do
    KEY=`echo ${LINE} | cut -d ' ' -f4`
    aws s3 cp s3://${BUCKET_NAME}/${KEY} ${COLLECTED_DATA_DIR}
done`
답변 없음

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

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

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