Skip to content

Commit

Permalink
Allow inputting an AWS profile name even if AWS_PROFILE is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS-ovm committed Feb 21, 2024
1 parent 0558ea4 commit 5230159
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/terraform_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func TerraformPlan(ctx context.Context, files []string, ready chan bool) int {
} else {
options = append(options,
huh.NewOption("Use the default settings", "defaults"),
huh.NewOption("Use an AWS SSO profile", "profile_input"),
)
}
// TODO: what URL needs to get opened here?
Expand Down Expand Up @@ -114,7 +115,7 @@ func TerraformPlan(ctx context.Context, files []string, ready chan bool) int {
switch aws_config {
case "profile_input":
aws_profile_input := huh.NewInput().
Title("Input the name of an AWS profile to use:").
Title("Input the name of the AWS profile to use:").
Value(&aws_profile).
WithAccessible(accessibleMode)
err = aws_profile_input.Run()
Expand Down

0 comments on commit 5230159

Please sign in to comment.