mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-10 08:03:08 -06:00
28 lines
640 B
Go
28 lines
640 B
Go
|
package aws
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/terraform/helper/schema"
|
||
|
)
|
||
|
|
||
|
func resourceAwsOpsworksMysqlLayer() *schema.Resource {
|
||
|
layerType := &opsworksLayerType{
|
||
|
TypeName: "db-master",
|
||
|
DefaultLayerName: "MySQL",
|
||
|
|
||
|
Attributes: map[string]*opsworksLayerTypeAttribute{
|
||
|
"root_password": &opsworksLayerTypeAttribute{
|
||
|
AttrName: "MysqlRootPassword",
|
||
|
Type: schema.TypeString,
|
||
|
WriteOnly: true,
|
||
|
},
|
||
|
"root_password_on_all_instances": &opsworksLayerTypeAttribute{
|
||
|
AttrName: "MysqlRootPasswordUbiquitous",
|
||
|
Type: schema.TypeBool,
|
||
|
Default: true,
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
return layerType.SchemaResource()
|
||
|
}
|