Skip to content

Commit

Permalink
Adding support for passing host system AWS_ prefixed variables into r…
Browse files Browse the repository at this point in the history
…uniac container (#51)
  • Loading branch information
drmmarsunited committed Feb 24, 2022
1 parent aeee2d3 commit 06737bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/cli/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ var deployCmd = &cobra.Command{
if strings.HasPrefix(env, "TF_VAR_") {
cmd2.Args = append(cmd2.Args, "-e", env)
}
}

for _, env := range cmd2.Env {
if strings.HasPrefix(env, "ARM_") {
cmd2.Args = append(cmd2.Args, "-e", env)
}
}

for _, env := range cmd2.Env {
if strings.HasPrefix(env, "RUNIAC_") {
cmd2.Args = append(cmd2.Args, "-e", env)
}

if strings.HasPrefix(env, "AWS_") {
cmd2.Args = append(cmd2.Args, "-e", env)
}
}

// handle local volume maps
Expand Down

0 comments on commit 06737bc

Please sign in to comment.