github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/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": &opsworksLayerTypeAttribute{
    14  				AttrName: "RubyVersion",
    15  				Type:     schema.TypeString,
    16  				Default:  "2.0.0",
    17  			},
    18  			"app_server": &opsworksLayerTypeAttribute{
    19  				AttrName: "RailsStack",
    20  				Type:     schema.TypeString,
    21  				Default:  "apache_passenger",
    22  			},
    23  			"passenger_version": &opsworksLayerTypeAttribute{
    24  				AttrName: "PassengerVersion",
    25  				Type:     schema.TypeString,
    26  				Default:  "4.0.46",
    27  			},
    28  			"rubygems_version": &opsworksLayerTypeAttribute{
    29  				AttrName: "RubygemsVersion",
    30  				Type:     schema.TypeString,
    31  				Default:  "2.2.2",
    32  			},
    33  			"manage_bundler": &opsworksLayerTypeAttribute{
    34  				AttrName: "ManageBundler",
    35  				Type:     schema.TypeBool,
    36  				Default:  true,
    37  			},
    38  			"bundler_version": &opsworksLayerTypeAttribute{
    39  				AttrName: "BundlerVersion",
    40  				Type:     schema.TypeString,
    41  				Default:  "1.5.3",
    42  			},
    43  		},
    44  	}
    45  
    46  	return layerType.SchemaResource()
    47  }