Skip to content

Commit

Permalink
feat(cli): generate & execute aws terraform code (#626)
Browse files Browse the repository at this point in the history
* feat(cli): generate aws terraform code
* feat(cli): generate aws terraform code additional testing
* feat(cli): generate aws terraform code subaccount flag
* feat(cli): generate aws terraform only cache interactive mode
* feat(cli): generate aws terraform pr feedback
* feat(cli): generate aws terraform subaccount flag update
* feat(cli): aws generate terraform reorg commands
* feat(cli): aws generate terraform existing code/state prompts
* feat(cli): aws generate terraform change custom output location behavior
* feat(cli): aws generate terraform cache handling and pr feedback
  • Loading branch information
Matt Cadorette authored Dec 8, 2021
1 parent c14756e commit 992bfa6
Show file tree
Hide file tree
Showing 141 changed files with 21,688 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ test: prepare ## Run all go-sdk tests
.PHONY: integration
integration: build-cli-cross-platform integration-only ## Build and run integration tests

.PHONY: integration-generation
integration-generation: build-cli-cross-platform integration-generation-only ## Build and run integration tests

.PHONY: integration-generation-only
integration-generation-only: ## Run integration tests
PATH=$(PWD)/bin:${PATH} go test -v github.com/lacework/go-sdk/integration -timeout 30m -run "^TestGeneration" -tags="generation"

.PHONY: integration-only
integration-only: ## Run integration tests
PATH=$(PWD)/bin:${PATH} go test -v github.com/lacework/go-sdk/integration -timeout 30m -tags="\
Expand All @@ -64,6 +71,7 @@ integration-only: ## Run integration tests
policy \
query \
version \
generation \
vulnerability"

.PHONY: integration-lql
Expand Down
20 changes: 20 additions & 0 deletions cli/cmd/cloud_account.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

import (
"github.com/spf13/cobra"
)

var (
// top-level cloud-account command
cloudAccountCommand = &cobra.Command{
Use: "cloud-account",
Aliases: []string{"cloud-accounts", "cloud", "ca"},
Short: "Manage cloud accounts",
Long: "Manage cloud account integrations with Lacework",
}
)

func init() {
// add the cloud-account command
rootCmd.AddCommand(cloudAccountCommand)
}
Loading

0 comments on commit 992bfa6

Please sign in to comment.