github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/aws/resource_aws_opsworks_rails_app_layer.go (about)

     1  package aws
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  )
     6  
     7  func resourceAwsOpsworksRailsAppLayer() *schema.Resource {
     8  	layerType := &opsworksLayerType{
     9  		TypeName:         "rails-app",
    10  		DefaultLayerName: "Rails App Server",
    11  
    12  		Attributes: map[string]*opsworksLayerTypeAttribute{
    13  			"ruby_version": {
    14  				AttrName: "RubyVersion",
    15  				Type:     schema.TypeString,
    16  				Default:  "2.0.0",
    17  			},
    18  			"app_server": {
    19  				AttrName: "RailsStack",
    20  				Type:     schema.TypeString,
    21  				Default:  "apache_passenger",
    22  			},
    23  			"passenger_version": {
    24  				AttrName: "PassengerVersion",
    25  				Type:     schema.TypeString,
    26  				Default:  "4.0.46",
    27  			},
    28  			"rubygems_version": {
    29  				AttrName: "RubygemsVersion",
    30  				Type:     schema.TypeString,
    31  				Default:  "2.2.2",
    32  			},
    33  			"manage_bundler": {
    34  				AttrName: "ManageBundler",
    35  				Type:     schema.TypeBool,
    36  				Default:  true,
    37  			},
    38  			"bundler_version": {
    39  				AttrName: "BundlerVersion",
    40  				Type:     schema.TypeString,
    41  				Default:  "1.5.3",
    42  			},
    43  		},
    44  	}
    45  
    46  	return layerType.SchemaResource()
    47  }