반응형
AWS Gamelift - build upload script (bash)
배포할 때 windows 환경에서 build upload를 위한 bash 스크립트입니다.
기본 코드 (리눅스 서버용)
aws gamelift upload-build \
--name "${build-name}" \
--build-version "${build-version}" \
--build-root "${path}" \
--operating-system AMAZON_LINUX \
--region "${region}"
완성형 코드
# ------------------------------------------------------------------
# Title : GameLift Build upload
# Data :
# Author :
# Using : ./filename.sh build-version region
# Copyright 2020. All rights reserved
# ------------------------------------------------------------------
#!/bin/bash
export VERSION="$1"
export REGION="$2"
# tar xvfz *.tar.gz
# cp aws-config.xml /Build/linux/
if [ "${VERSION}" = "" ]; then
echo ""
echo "error - empty VERSION"
echo ""
exit 1
fi
if [ "${REGION}" = "" ]; then
echo ""
echo "error - empty REGION"
echo ""
exit 1
fi
aws gamelift upload-build \
--name game-server \
--build-version ${VERSION} \
--build-root Build/linux/ \
--operating-system AMAZON_LINUX \
--region ${REGION}
by mkdir-chandler
728x90
반응형
'Ops > AWS' 카테고리의 다른 글
AWS Gamelift - instance ssh 접속 code (bash) (0) | 2023.08.06 |
---|---|
AWS Gamelift - instance ssh 접속 방법 (0) | 2023.08.05 |
AWS Gamelift - build upload script (powershell) (0) | 2023.07.30 |
AWS Gamelift - autoscaling script code (bash) (0) | 2023.07.29 |
AWS Gamelift - 자원 사용량 체크 (ansible + jenkins) (0) | 2023.07.28 |