Skip to content

Commit

Permalink
improving
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaela-soares committed Aug 19, 2022
1 parent 8cb96ed commit be5fee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/terraformer/terraformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,19 @@ func buildArgs(pathOptions *Path, destination string) []string {
args := []string{
"import", pathOptions.CloudProvider,
"--resources=" + pathOptions.Resources,
"--regions=" + pathOptions.Regions,
"-o", destination,
"--verbose",
}

// probably we will need to define the profile to ""
if pathOptions.CloudProvider == "aws" {
args = append(args, "--regions="+pathOptions.Regions)
args = append(args, "--profile=\"\"")
}

// the flag '--projects' is only required for gcp
if pathOptions.Projects != "" && pathOptions.CloudProvider == "google" {
args = append(args, "--regions="+pathOptions.Regions)
args = append(args, "--projects="+pathOptions.Projects)
}

Expand Down

0 comments on commit be5fee2

Please sign in to comment.