You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Relative path to output file where we want to store the exclusions template.",
32
-
)
24
+
@click.option("-o", "--output-file", type=click.Path(exists=False), default=os.path.join(os.getcwd(), "exclusions.yml"), required=True, help="Relative path to output file where we want to store the exclusions template.")
help="Relative path to output file where we want to store the multi account config template.",
35
-
)
36
-
@click.option(
37
-
"-v", "--verbose", "verbosity", count=True,
38
-
)
26
+
@click.option("-o", "--output-file", "output_file", type=click.Path(exists=False), default=os.path.join(os.getcwd(), "multi-account-config.yml"), required=True, help="Relative path to output file where we want to store the multi account config template.")
@click.option("-p", "--profile", type=str, required=False, envvar="AWS_DEFAULT_PROFILE", help="Specify 'all' to authenticate to AWS and scan from *all* AWS credentials profiles. Specify a non-default profile here. Defaults to the 'default' profile.")
26
+
@click.option("-o", "--output", type=click.Path(exists=True), default=os.getcwd(), help="Path to store the output. Defaults to current directory.")
27
+
@click.option("--include-non-default-policy-versions", is_flag=True, default=False, help="When downloading AWS managed policy documents, also include the non-default policy versions. Note that this will dramatically increase the size of the downloaded file.")
@click.option("-i", "--input-file", type=click.Path(exists=True), required=True, help="Path of IAM account authorization details file")
33
+
@click.option("-e", "--exclusions-file", help="A yaml file containing a list of policy names to exclude from the scan.", type=click.Path(exists=True), required=False, default=EXCLUSIONS_FILE)
@click.option("-s", "--skip-open-report", required=False, default=False, is_flag=True, help="Don't open the HTML report in the web browser after creating. This helps when running the report in automation.")
36
+
@click.option("-m", "--minimize", required=False, default=False, is_flag=True, help="Reduce the size of the HTML Report by pulling the Cloudsplaining Javascript code over the internet.")
@click.command(short_help="Scan multiple AWS Accounts using a config file")
44
-
@click.option(
45
-
"--config",
46
-
"-c",
47
-
"config_file",
48
-
type=click.Path(exists=True),
49
-
required=True,
50
-
help="Path of the multi-account config file",
51
-
)
52
-
@click.option(
53
-
"--profile",
54
-
"-p",
55
-
"profile",
56
-
type=str,
57
-
required=False,
58
-
help="Specify the AWS IAM profile.",
59
-
envvar="AWS_PROFILE",
60
-
)
61
-
@click.option(
62
-
"--role-name",
63
-
"-r",
64
-
"role_name",
65
-
type=str,
66
-
required=True,
67
-
help="The name of the IAM role to assume in target accounts. Must be the same name in all target accounts.",
68
-
)
69
-
@click.option(
70
-
"--exclusions-file",
71
-
"-e",
72
-
"exclusions_file",
73
-
help="A yaml file containing a list of policy names to exclude from the scan.",
74
-
type=click.Path(exists=True),
75
-
required=False,
76
-
default=EXCLUSIONS_FILE,
77
-
)
78
-
@optgroup.group(
79
-
"Output Target Options", help="",
80
-
)
81
-
@optgroup.option(
82
-
"--output-directory",
83
-
"-o",
84
-
"output_directory",
85
-
type=click.Path(exists=True),
86
-
help="Output directory. Supply this and/or --bucket.",
87
-
)
88
-
@optgroup.option(
89
-
"--output-bucket",
90
-
"-b",
91
-
"output_bucket",
92
-
type=str,
93
-
help="The S3 bucket to save the results. Supply this and/or --output-directory.",
94
-
)
95
-
@optgroup.group(
96
-
"Other Options", help="",
97
-
)
98
-
@optgroup.option(
99
-
"--write-data-file",
100
-
"-w",
101
-
is_flag=True,
102
-
required=False,
103
-
default=False,
104
-
help="Save the cloudsplaining JSON-formatted data results.",
105
-
)
106
-
@click.option(
107
-
"-v", "--verbose", "verbosity", count=True,
108
-
)
44
+
@click.option("--config", "-c", "config_file", type=click.Path(exists=True), required=True, help="Path of the multi-account config file")
45
+
@click.option("-p", "--profile", type=str, required=False, envvar="AWS_DEFAULT_PROFILE", help="Specify the AWS IAM profile")
46
+
@click.option("-r", "--role-name", "role_name", type=str, required=True, help="The name of the IAM role to assume in target accounts. Must be the same name in all target accounts.")
47
+
@click.option("-e", "--exclusions-file", "exclusions_file", help="A yaml file containing a list of policy names to exclude from the scan.", type=click.Path(exists=True), required=False, default=EXCLUSIONS_FILE)
48
+
@optgroup.group("Output Target Options", help="")
49
+
@optgroup.option("-o", "--output-directory", "output_directory", type=click.Path(exists=True), help="Output directory. Supply this and/or --bucket.")
50
+
@optgroup.option("-b", "--output-bucket", "output_bucket", type=str, help="The S3 bucket to save the results. Supply this and/or --output-directory.")
51
+
@optgroup.group("Other Options", help="")
52
+
@optgroup.option("-w", "--write-data-file", is_flag=True, required=False, default=False, help="Save the cloudsplaining JSON-formatted data results.")
0 commit comments