providers/aws: some mock data
This commit is contained in:
parent
c81e3f4db7
commit
fa6a87e819
|
@ -14,9 +14,25 @@ func (p *ResourceProvider) Configure(map[string]interface{}) error {
|
||||||
func (p *ResourceProvider) Diff(
|
func (p *ResourceProvider) Diff(
|
||||||
s *terraform.ResourceState,
|
s *terraform.ResourceState,
|
||||||
c map[string]interface{}) (*terraform.ResourceDiff, error) {
|
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 {
|
func (p *ResourceProvider) Resources() []terraform.ResourceType {
|
||||||
return nil
|
return []terraform.ResourceType{
|
||||||
|
terraform.ResourceType{
|
||||||
|
Name: "aws_instance",
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue