Skip to content

AWS Setup

Workstate uses Amazon S3 to store your environment states safely. Here is how to prepare your account.

While Workstate can create a bucket for you during workstate configure, you can also use an existing one.

  • Recommended Region: Choose a region close to you (e.g., us-east-1 or sa-east-1).
  • Permissions: Public access should be blocked.

The user or role running Workstate needs the following permissions on the target bucket:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::your-bucket-name",
"arn:aws:s3:::your-bucket-name/*"
]
}
]
}

Run the configuration command to link Workstate to your bucket:

Terminal window
workstate configure