export CDK_DEFAULT_ACCOUNT=`aws sts get-caller-identity | jq .Account -r`
export CDK_DEFAULT_REGION='ap-southeast-1'
-
KeyPairs
- For the fist time deployment, you can create a keyPair for instance ssh login by using
export CREATE_KEYPAIR=true
. - We use key name
pal-server-keypair-${region}
for all servers in the same region.
ⓘ If you do not have the keyPair in the deployment region and do not set
export CREATE_KEYPAIR=true
to create the keyPair, the deployment will fail. - For the fist time deployment, you can create a keyPair for instance ssh login by using
-
Backup S3 Bucket
- For the fist time deployment, you can create a bucket for backups and other purposes by using
export CREATE_BUCKET=true
. - We use bucket name
palworld-cdk-demo-${accountId}-${region}
for all servers in the same region. - In case bucket name is already taken by others, you can also provide via
export BUCKET_NAME=xxx
ⓘ If you do not have the bucket in the deployment region and do not set
export CREATE_BUCKET=true
norexport BUCKET_NAME=xxx
to create or assign the bucket, the deployment will fail. - For the fist time deployment, you can create a bucket for backups and other purposes by using
-
Player Number is supported
cd ./server
export CREATE_KEYPAIR=true
export CREATE_BUCKET=true
cdk deploy --require-approval never
Go to the root of CDK projects and run the command below.
cdk destroy --all --force