providers/aws: some mock data

This commit is contained in:
Mitchell Hashimoto 2014-06-10 11:34:14 -07:00
parent c81e3f4db7
commit fa6a87e819
1 changed files with 18 additions and 2 deletions

View File

@ -14,9 +14,25 @@ func (p *ResourceProvider) Configure(map[string]interface{}) error {
func (p *ResourceProvider) Diff(
s *terraform.ResourceState,
c map[string]interface{}) (*terraform.ResourceDiff, error) {
return nil, nil
return &terraform.ResourceDiff{
Attributes: map[string]*terraform.ResourceAttrDiff{
"id": &terraform.ResourceAttrDiff{
Old: "",
NewComputed: true,
RequiresNew: true,
},
"created": &terraform.ResourceAttrDiff{
Old: "false",
New: "true",
},
},
}, nil
}
func (p *ResourceProvider) Resources() []terraform.ResourceType {
return nil
return []terraform.ResourceType{
terraform.ResourceType{
Name: "aws_instance",
},
}
}