mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
providers/aws: add the main binary
This commit is contained in:
parent
612f335a74
commit
d6d5a97ec9
10
builtin/bins/provider-aws/main.go
Normal file
10
builtin/bins/provider-aws/main.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/hashicorp/terraform/plugin"
|
||||||
|
"github.com/hashicorp/terraform/builtin/providers/aws"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
plugin.Serve(new(aws.ResourceProvider))
|
||||||
|
}
|
1
builtin/bins/provider-aws/main_test.go
Normal file
1
builtin/bins/provider-aws/main_test.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package main
|
8
builtin/providers/aws/resource_provider.go
Normal file
8
builtin/providers/aws/resource_provider.go
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
package aws
|
||||||
|
|
||||||
|
type ResourceProvider struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *ResourceProvider) Configure(map[string]interface{}) ([]string, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
11
builtin/providers/aws/resource_provider_test.go
Normal file
11
builtin/providers/aws/resource_provider_test.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package aws
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/terraform/terraform"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestResourceProvider_impl(t *testing.T) {
|
||||||
|
var _ terraform.ResourceProvider = new(ResourceProvider)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user