How to store state file in S3

Hi,
I am a new user of Terraform CDK w/ Typescript and I need help in storing my state file in S3, currently it is being stored remotely only.

Once your S3 bucket is setup, you can simply add a S3Backend to your stack. See terraform-cdk/main.ts at main · hashicorp/terraform-cdk · GitHub for an example.