State Backends
Overview
State Backends let SGCode compare your discovered resources against existing Terraform state files. This shows you which resources already have code, so you don't generate code for infrastructure that's already managed.

State Backend tab
To add a state backend, select Add State Backend and complete the form:
- Type — select your backend type (for example, AWS S3)
- Select Connector — choose a connected cloud provider connector
- Bucket Region — select the region where your state bucket is located
- S3 Bucket Name— enter the name of your S3 bucket

Add a state backend
Select Discover State Files to import the state.