Skip to content

akihokurino/rust-app-bootstrap

Repository files navigation

Rust App Template For AWS

Build App

make build

Run App

make run-db
make run-api

Deploy App

make deploy

Create AWS Resources

1. make ssm
2. aws cloudformation deploy --template-file cfn/network.yaml --stack-name network
3. aws cloudformation deploy --template-file cfn/rds.yaml --stack-name rds
4. aws cloudformation deploy --template-file cfn/bastion.yaml --stack-name bastion
5. aws cloudformation deploy --template-file cfn/s3.yaml --stack-name s3 --parameter-overrides S3BucketNamePrefix=rust-app-bootstrap
6. aws cloudformation deploy --template-file cfn/sns.yaml --stack-name sns

SeaORM

Install tools

cargo install sea-orm-cli
sea-orm-cli migrate init

Migration

sea-orm-cli migrate generate create_table_users
cargo run -- refresh

Docker auth

echo -n "username:personal_access_token" | base64
{
  "auths": {
    "https://index.docker.io/v1/": {
      "auth": "<base64-encoded-auth>"
    }
  }
}

AWS

スクリーンショット 2025-06-27 10 44 46

About

rust application bootstrap for aws

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published