driftctl/pkg/remote/aws/init_test.go

17 lines
391 B
Go

package aws
import "github.com/cloudskiff/driftctl/pkg/terraform"
func InitTestAwsProvider(providerLibrary *terraform.ProviderLibrary) (*AWSTerraformProvider, error) {
provider, err := NewAWSTerraformProvider()
if err != nil {
return nil, err
}
err = provider.Init()
if err != nil {
return nil, err
}
providerLibrary.AddProvider(terraform.AWS, provider)
return provider, nil
}