Static Unit
Static Unit's configuration will be denoted by the static_unit
section in the klotho configuration file.
Each static unit has a configuration containing the following:
Field | Type | Description |
---|---|---|
type | string | (Optional) The type of service used to host the static unit. |
content_delivery_network | Object | (Optional) The parameters used to configure the content delivery network. |
Type
The type specifies the location, where the static unit will be hosted. Type is provider specific. The following are valid types for static units.
- AWS
- GCP
caution
GCP hasn't been updated to v1 yet, so this is just a projection of what it may be.
ContentDeliveryNetwork
The content_delivery_network
field is used to instruct klotho to put a content delivery network in front of the static unit.
If multiple resources specify a content delivery network with the same id
, the will be deployed behind a single network.
Field | Type | Description |
---|---|---|
id | string | (Optional) The id of the content delivery network. |