github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/website/source/docs/appfile/infra.html.md (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Infrastructure - Appfile"
     4  sidebar_current: "docs-appfile-infra"
     5  description: |-
     6    The infrastructure configuration describes what infrastructures
     7    an application can be deployed to.
     8  ---
     9  
    10  # Infrastructure Configuration
    11  
    12  The infrastructure configuration describes what infrastructures
    13  an application can be deployed to.
    14  
    15  This page assumes you're familiar with the
    16  [Appfile syntax](/docs/appfile/syntax.html) already.
    17  
    18  ## Example
    19  
    20  The infrastructure configuration looks like the following:
    21  
    22  ```
    23  infrastructure "production" {
    24      type = "aws"
    25      flavor = "vpc-public-private"
    26  }
    27  ```
    28  
    29  ## Description
    30  
    31  The `infrastructure` block configures a potential infrastructure
    32  target for an application. Multiple infrastructure blocks can be
    33  specified in an Appfile.
    34  
    35  The [project](/docs/appfile/project.html) block ties a project (and
    36  therefore an application) to a default infrastructure.
    37  
    38  The `infrastructure` block allows the following keys to be set:
    39  
    40    * `type` (string) - The type of the infrastructure. The full list
    41        of available infrastructure types is [available here](/docs/infra).
    42  
    43    * `flavor` (string) - The flavor of the infrastructure. This will be
    44        documented on the page of the type of the infrastructure chosen.
    45  
    46  ## Syntax
    47  
    48  The full syntax is:
    49  
    50  ```
    51  infrastructure NAME {
    52  	type = TYPE
    53  	flavor = FLAVOR
    54  }
    55  ```