Skip to content

yagrxu/palworld-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

palworld-demo

How to use the CDK

Prepare Environment Values

export CDK_DEFAULT_ACCOUNT=`aws sts get-caller-identity | jq .Account -r`
export CDK_DEFAULT_REGION='ap-southeast-1'

Server Deployment Commands

  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.

  2. 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 nor export BUCKET_NAME=xxx to create or assign the bucket, the deployment will fail.

  3. Player Number is supported

cd ./server
export CREATE_KEYPAIR=true
export CREATE_BUCKET=true
cdk deploy --require-approval never

Clean up Projects

Go to the root of CDK projects and run the command below.

cdk destroy --all --force

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published