Skip to content

Commit

Permalink
test: fix help tests
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Murray <darren.murray@lacework.net>
  • Loading branch information
dmurray-lacework committed Jul 31, 2023
1 parent fd711af commit 4ab3c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cli/cmd/generate_aws_controltower.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (
generateAwsControlTowerTfCommand = &cobra.Command{
Use: "controltower",
Short: "Generate and/or execute Terraform code for ControlTower integration",
Long: `Use this command to generate Terraform code for deploying Lacework with Aws Cloudtrail and
Long: `Use this command to generate Terraform code for deploying Lacework with Aws Cloudtrail and
ControlTower.
By default, this command interactively prompts for the required information to set up the new cloud account.
Expand Down Expand Up @@ -356,7 +356,9 @@ func initGenerateAwsControlTowerTfCommandFlags() {

generateAwsControlTowerTfCommand.PersistentFlags().StringVar(
&GenerateAwsControlTowerCommandState.OrgAccountMappingsJson,
"org_account_mapping", "", "Org account mapping json string")
"org_account_mapping", "", "Org account mapping json string. Example: "+
"'{\"default_lacework_account\":\"main\", \"mapping\": [{ \"aws_accounts\": [\"123456789011\"], "+
"\"lacework_account\": \"sub-account-1\"}]}'")

generateAwsControlTowerTfCommand.PersistentFlags().StringVar(
&GenerateAwsControlTowerCommandState.IamRoleExternalID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Flags:
--iam_role_name string specify the name of the existing iam role
--lacework_aws_account_id string the Lacework AWS root account id
--log_archive_account string The log archive account flag input in the format profile:region
--org_account_mapping string Org account mapping json string
--org_account_mapping string Org account mapping json string. Example: '{"default_lacework_account":"main", "mapping": [{ "aws_accounts": ["123456789011"], "lacework_account": "sub-account-1"}]}'
--output string location to write generated content
--prefix string specify the prefix that will be used at the beginning of every generated resource
--s3_bucket_arn string the S3 Bucket for consolidated CloudTrail
Expand Down

0 comments on commit 4ab3c74

Please sign in to comment.