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

     1  package aws
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  )
     6  
     7  func resourceAwsOpsworksMysqlLayer() *schema.Resource {
     8  	layerType := &opsworksLayerType{
     9  		TypeName:         "db-master",
    10  		DefaultLayerName: "MySQL",
    11  
    12  		Attributes: map[string]*opsworksLayerTypeAttribute{
    13  			"root_password": {
    14  				AttrName:  "MysqlRootPassword",
    15  				Type:      schema.TypeString,
    16  				WriteOnly: true,
    17  			},
    18  			"root_password_on_all_instances": {
    19  				AttrName: "MysqlRootPasswordUbiquitous",
    20  				Type:     schema.TypeBool,
    21  				Default:  true,
    22  			},
    23  		},
    24  	}
    25  
    26  	return layerType.SchemaResource()
    27  }