Lines Matching +full:application +full:- +full:default +full:- +full:credentials
1 # Python wrapper script for collecting Canary metrics, setting-up/tearing-down alarms, reporting me…
16 command_parser.add_argument("--canary_executable", type=str, required=True,
17 help="The path to the canary executable (or program - like 'python3')")
18 command_parser.add_argument("--canary_arguments", type=str, default="",
20 command_parser.add_argument("--git_hash", type=str, required=True,
22 command_parser.add_argument("--git_repo_name", type=str, required=True,
24 command_parser.add_argument("--git_hash_as_namespace", type=bool, default=False,
25 …help="(OPTIONAL, default=False) If true, the git hash will be used as the name of the Cloudwatch n…
26 command_parser.add_argument("--output_log_filepath", type=str, default="output.log",
27 help="(OPTIONAL, default=output.log) The file to output log info to. Set to 'None' to disable")
28 command_parser.add_argument("--output_to_console", type=bool, default=True,
29 help="(OPTIONAL, default=True) If true, info will be output to the console")
30 command_parser.add_argument("--cloudwatch_region", type=str, default="us-east-1",
31 help="(OPTIONAL, default=us-east-1) The AWS region for Cloudwatch")
32 command_parser.add_argument("--s3_bucket_name", type=str, default="canary-wrapper-folder",
33 …help="(OPTIONAL, default=canary-wrapper-folder) The name of the S3 bucket where success logs will …
34 command_parser.add_argument("--snapshot_wait_time", type=int, default=600,
35 …help="(OPTIONAL, default=600) The number of seconds between gathering and sending snapshot reports…
36 command_parser.add_argument("--ticket_category", type=str, default="AWS",
37 help="(OPTIONAL, default=AWS) The category to register the ticket under")
38 command_parser.add_argument("--ticket_type", type=str, default="SDKs and Tools",
39 help="(OPTIONAL, default='SDKs and Tools') The type to register the ticket under")
40 command_parser.add_argument("--ticket_item", type=str, default="IoT SDK for CPP",
41 help="(OPTIONAL, default='IoT SDK for CPP') The item to register the ticket under")
42 command_parser.add_argument("--ticket_group", type=str, default="AWS IoT Device SDK",
43 help="(OPTIONAL, default='AWS IoT Device SDK') The group to register the ticket under")
44 command_parser.add_argument("--dependencies", type=str, default="",
45 help="(OPTIONAL, default='') Any dependencies and their commit hashes. \
47 command_parser.add_argument("--lambda_name", type=str, default="iot-send-email-lambda",
48 help="(OPTIONAL, default='CanarySendEmailLambda') The name of the Lambda used to send emails")
49 command_parser.add_argument("--codebuild_log_path", type=str, default="",
58 # Deal with possibly empty values in semi-critical commands/arguments
60 print ("ERROR - required canary_executable is empty!", flush=True)
63 print ("ERROR - required git_hash is empty!", flush=True)
66 print ("ERROR - required git_repo_name is empty!", flush=True)
75 command_parser_arguments.cloudwatch_region = "us-east-1"
77 command_parser_arguments.s3_bucket_name = "canary-wrapper-folder"
92 datetime_string = datetime_now.strftime("%d-%m-%Y/%H-%M-%S")
104 cloudwatch_region="us-east-1",
115 print ("INFO - Stopping application due to error caused by credentials")
116 print ("Please fix your credentials and then restart this application again", flush=True)
151 print ("INFO - Stopping application due to error caused by credentials")
152 print ("Please fix your credentials and then restart this application again", flush=True)
155 # Make the application monitor
165 print ("INFO - Stopping application due to error caused by credentials")
166 print ("Please fix your credentials and then restart this application again", flush=True)
197 …start_email_body += "\nThe wrapper will run for the length the MQTT5 Canary application is set to …
202 # Start the application going
226 # We do not need to cut a ticket here - it's cut by the snapshot monitor!
227 print ("ERROR - Snapshot monitor stopped due to metric in alarm!", flush=True)
232 print ("ERROR - Snapshot monitor stopped due to internal error!", flush=True)
238 cloudwatch_region="us-east-1",
253 print ("INFO - Stopping application due to error caused by credentials")
254 … print ("Please fix your credentials and then restart this application again", flush=True)
265 cloudwatch_region="us-east-1",
266 …ticket_description="The Short Running Canary exited with a non-zero exit code! This likely means s…
267 ticket_reason="The Short Running Canary exited with a non-zero exit code",
275 …body += "Failure due to MQTT5 application exiting with a non-zero exit code! This means something …
277 …print ("INFO - Stopping application. No error has occurred, application has stopped normally", flu…
282 print ("ERROR - Short Running Canary stopped due to unknown reason!", flush=True)
288 cloudwatch_region="us-east-1",
329 # Start the application!