Skip to content

Commit

Permalink
Validate Terraform input variables using OPA policies (#977)
Browse files Browse the repository at this point in the history
* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates
  • Loading branch information
aknysh authored Jan 27, 2025
1 parent 4cd79f1 commit 255a05a
Show file tree
Hide file tree
Showing 15 changed files with 412 additions and 96 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ func showUsageAndExit(cmd *cobra.Command, args []string) {
os.Exit(1)
}

// getConfigAndStacksInfo gets the
// getConfigAndStacksInfo processes the CLI config and stacks
func getConfigAndStacksInfo(commandName string, cmd *cobra.Command, args []string) schema.ConfigAndStacksInfo {
// Check Atmos configuration
checkAtmosConfig()
Expand Down
3 changes: 2 additions & 1 deletion cmd/terraform.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
"github.com/cloudposse/atmos/pkg/hooks"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

type contextKey string
Expand Down
2 changes: 1 addition & 1 deletion examples/quick-start-advanced/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG GEODESIC_OS=debian
# https://atmos.tools/
# https://github.com/cloudposse/atmos
# https://github.com/cloudposse/atmos/releases
ARG ATMOS_VERSION=1.153.0
ARG ATMOS_VERSION=1.156.0

# Terraform: https://github.com/hashicorp/terraform/releases
ARG TF_VERSION=1.5.7
Expand Down
56 changes: 28 additions & 28 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 255a05a

Please sign in to comment.