> ## Documentation Index
> Fetch the complete documentation index at: https://docs.springwinter.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How SpringWinter uses your AWS account

> Understand compute, networking, private data services and delegated access, including what SpringWinter handles and what your application must operate.

SpringWinter is the control plane for supported resources in your AWS account. You launch a CloudFormation connection stack that creates delegated IAM access. SpringWinter verifies that connection and uses temporary role credentials for authorized operations. You do not paste AWS access keys into a coding-agent conversation.

```mermaid theme={null}
flowchart LR
    User[You and your coding agent] -->|Dashboard or authenticated API| SW[SpringWinter control plane]
    SW -->|Temporary delegated role| IAM
    Browser[Application users] --> CDN
    Browser --> ALB
    subgraph AWS[Your AWS account]
      IAM[Connection IAM role]
      Build[CodeBuild and container artifacts]
      CDN[CloudFront and private S3 origin]
      subgraph VPC[Project VPC in one Region]
        ALB[Shared application load balancer]
        Web[Fargate web tasks]
        Worker[Fargate workers without public URL]
        DB[Private RDS or Aurora]
        Cache[Private TLS Valkey]
        ALB --> Web
        Web --> DB
        Web --> Cache
        Worker --> DB
        Worker --> Cache
      end
      Objects[Private S3 application objects]
      Build --> Web
      Web --> Objects
      Worker --> Objects
    end
```

The diagram shows service boundaries, not every AWS API call. Resource creation depends on the selected workload, account permissions, quotas and Region. Static sites do not require a web task or SQL database.

## Compute and request routing

ECS maintains the configured number of Fargate tasks. A task is a replaceable running container, not a durable server disk. The project load balancer routes HTTP requests to healthy web tasks. Workers have no public URL or load-balancer route. Static assets use private S3 storage behind CloudFront instead of a running application server.

New project networks use public subnets and an internet gateway. Compute can receive public IP addresses; security groups govern traffic. SQL databases and Valkey remain private. Do not describe this as private-subnet compute or assume a NAT gateway. AWS can bill public IPv4, network transfer and shared resources separately.

Configured CPU, memory and copies control capacity. Maximum copies do not activate automatic load-based scaling. Stateless requests, graceful termination, bounded database pools and retry-safe workers help an application survive task replacement.

## Build, configuration and secrets

A connected GitHub repository supplies build source. Builds use the configured Dockerfile or static build command. Runtime variables configure a running server or worker; build variables configure the build and can enter public browser bundles or image layers. Never place a private key in `VITE_*`, `NEXT_PUBLIC_*`, Docker build arguments, a repository or a public issue.

Application owners must configure database and provider credentials privately. SQL credentials are managed in customer AWS Secrets Manager where the resource supports it. Fetch only through authorized controls, use verified TLS, and do not print connection strings in logs. See [credentials](https://docs.springwinter.dev/security/credentials.md) and [environment variables](https://docs.springwinter.dev/concepts/environment-variables.md).

## Persistence and recovery

Use a database for records and object storage for supported uploads. Container files and service-managed task volumes disappear when tasks stop. A volume-size setting does not turn that disk into shared durable storage. Applications that require persistent POSIX files need a different architecture or host.

Choose database backup and final-snapshot policies before deployment. A backup setting is not evidence that restore works. Test restoration with an isolated disposable copy, measure the recovery time and verify application behavior. Never test recovery by overwriting the live database.

## Shared responsibility

| SpringWinter workflow | Your responsibility |
| - | - |
| Supported infrastructure creation and deployment | Approve account, Region, architecture and costs |
| Workflow state, logs and metrics views | Inspect failures, define alerts and respond to incidents |
| Delegated AWS connection | Review IAM changes and organization restrictions |
| HTTPS certificate workflow | Own domain/DNS records and verify active certificate attachment |
| Resource configuration | Patch application dependencies, secure user access, test migrations and recovery |

Workload resources remain in your account. Resource records and operational data needed for the service can pass through or remain in the control plane. See [data boundaries](https://docs.springwinter.dev/security/data.md). Ownership does not eliminate third-party processing or compliance work.

## References and next steps

* [ECS and Fargate concepts](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html)
* [IAM roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)
* [Load-balancer health checks](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html)
* [Compatibility](https://docs.springwinter.dev/reference/compatibility.md), [costs](https://docs.springwinter.dev/guides/cost-estimation.md), and [deployment troubleshooting](https://docs.springwinter.dev/troubleshooting/deployments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.