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

# Infra Settings

The `InfraSettings` object in the `infra/settings.py` file defines common settings used by your apps and resources. Here are the settings we recommend updating:

```python infra/settings.py theme={null}
infra_settings = InfraSettings(
    # Update this to your project name
    infra_name="ai",
    # Add your AWS subnets
    aws_subnet_ids=["subnet-xyz", "subnet-xyz"],
    # Add your image repository
    image_repo="[ACCOUNT_ID].dkr.ecr.us-east-1.amazonaws.com",
    # Set to True to build images locally
    build_images=True,
    # Set to True to push images after building
    push_images=True,
)
```

<Note>
  `InfraSettings` can also be updated using environment variables or the `.env` file.

  Checkout the `example.env` file for an example.
</Note>

### Infra Name

The `infra_name` is used to name your apps and resources. Change it to your project or team name, for example:

* `infra_name="booking-ai"`
* `infra_name="reddit-ai"`
* `infra_name="vantage-ai"`

The `infra_name` is used to name:

* The image for your application
* Apps like db, streamlit app and FastAPI server
* Resources like buckets, secrets and loadbalancers

Checkout the `infra/dev_resources.py` and `infra/prd_resources.py` file to see how its used.

## Image Repository

The `image_repo` defines the repo for your image.

* If using dockerhub it would be something like `agno`.
* If using ECR it would be something like `[ACCOUNT_ID].dkr.ecr.us-east-1.amazonaws.com`

Checkout the `dev_image` in `infra/dev_resources.py` and `prd_image` in `infra/prd_resources.py` to see how its used.

## Build Images

Setting `build_images=True` will build images locally when running `ag infra up dev:docker` or `ag infra up prd:docker`.

Checkout the `dev_image` in `infra/dev_resources.py` and `prd_image` in `infra/prd_resources.py` to see how its used.

Read more about:

* [Building your development image](/deploy/templates/aws/configure/development-app)
* [Building your production image](/deploy/templates/aws/configure/production-app)

## Push Images

Setting `push_images=True` will push images after building when running `ag infra up dev:docker` or `ag infra up prd:docker`.

Checkout the `dev_image` in `infra/dev_resources.py` and `prd_image` in `infra/prd_resources.py` to see how its used.

Read more about:

* [Building your development image](/deploy/templates/aws/configure/development-app)
* [Building your production image](/deploy/templates/aws/configure/production-app)

## AWS Settings

The `aws_region` and `aws_subnet_ids` provide values used for creating production resources. Checkout the `infra/prd_resources.py` file to see how its used.
