-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider: rearrange files to ease reading/addition
The known providers are now put into a separated files, which helps with adding new supported one to the default list.
- Loading branch information
Hugo Rosnet
committed
Aug 20, 2021
1 parent
de17200
commit db5159d
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package terracost | ||
|
||
import ( | ||
"github.com/cycloidio/terracost/aws" | ||
"github.com/cycloidio/terracost/terraform" | ||
) | ||
|
||
// defaultProviders are the currently known and supported terraform providers | ||
var defaultProviders = []terraform.ProviderInitializer{ | ||
aws.TerraformProviderInitializer, | ||
} | ||
|
||
// getDefaultProviders will return the default supported providers of terracost | ||
func getDefaultProviders() []terraform.ProviderInitializer { | ||
return defaultProviders | ||
} |