From d6d5a97ec9cd08658e015ca83b34da3795e199ad Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 29 May 2014 17:28:38 -0700 Subject: [PATCH] providers/aws: add the main binary --- builtin/bins/provider-aws/main.go | 10 ++++++++++ builtin/bins/provider-aws/main_test.go | 1 + builtin/providers/aws/resource_provider.go | 8 ++++++++ builtin/providers/aws/resource_provider_test.go | 11 +++++++++++ 4 files changed, 30 insertions(+) create mode 100644 builtin/bins/provider-aws/main.go create mode 100644 builtin/bins/provider-aws/main_test.go create mode 100644 builtin/providers/aws/resource_provider.go create mode 100644 builtin/providers/aws/resource_provider_test.go diff --git a/builtin/bins/provider-aws/main.go b/builtin/bins/provider-aws/main.go new file mode 100644 index 000000000..d994a6b64 --- /dev/null +++ b/builtin/bins/provider-aws/main.go @@ -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)) +} diff --git a/builtin/bins/provider-aws/main_test.go b/builtin/bins/provider-aws/main_test.go new file mode 100644 index 000000000..f189a2735 --- /dev/null +++ b/builtin/bins/provider-aws/main_test.go @@ -0,0 +1 @@ +package main diff --git a/builtin/providers/aws/resource_provider.go b/builtin/providers/aws/resource_provider.go new file mode 100644 index 000000000..cab8f2323 --- /dev/null +++ b/builtin/providers/aws/resource_provider.go @@ -0,0 +1,8 @@ +package aws + +type ResourceProvider struct { +} + +func (p *ResourceProvider) Configure(map[string]interface{}) ([]string, error) { + return nil, nil +} diff --git a/builtin/providers/aws/resource_provider_test.go b/builtin/providers/aws/resource_provider_test.go new file mode 100644 index 000000000..3e6b7a12c --- /dev/null +++ b/builtin/providers/aws/resource_provider_test.go @@ -0,0 +1,11 @@ +package aws + +import ( + "testing" + + "github.com/hashicorp/terraform/terraform" +) + +func TestResourceProvider_impl(t *testing.T) { + var _ terraform.ResourceProvider = new(ResourceProvider) +}