Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Str NameLoad Str Dict Str Str Str Str Str Str NameLoad Str Dict Str Str Str Str Str Str NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad Str If CompareNotIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list
N/A N/A errno N/A os N/A shutil N/A sys awscli.customizations.commands BasicCommand awscli.customizations.codedeploy.utils validate_region validate_s3_location validate_instance Install N/A BasicCommand N/A N/A NAME install N/A DESCRIPTION Configures and installs the AWS CodeDeploy Agent on the on-premises instance. N/A ARG_TABLE N/A N/A name synopsis required help_text config-file --config-file <path> True Required. The path to the on-premises instance configuration file. N/A name action default help_text override-config store_true False Optional. Overrides the on-premises instance configuration file. N/A name synopsis required help_text agent-installer --agent-installer <s3-location> False Optional. The AWS CodeDeploy Agent installer file. _run_main N/A N/A self parsed_args parsed_globals N/A N/A N/A params parsed_args N/A N/A params session N/A self _session N/A N/A validate_region params parsed_globals N/A N/A validate_instance params N/A N/A N/A N/A params system validate_administrator N/A N/A N/A self _validate_override_config params N/A N/A N/A self _validate_agent_installer params N/A N/A N/A N/A N/A self _create_config params N/A N/A N/A self _install_agent params N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A sys stdout flush N/A N/A N/A N/A sys stderr write N/A N/A ERROR
{0}
Install the AWS CodeDeploy Agent on the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide.
 format e N/A _validate_override_config N/A N/A self params N/A N/A N/A N/A N/A N/A N/A os path isfile N/A N/A params system CONFIG_PATH N/A N/A params override_config N/A N/A N/A RuntimeError The on-premises instance configuration file already exists. Specify --override-config to update the existing on-premises instance configuration file. N/A _validate_agent_installer N/A N/A self params N/A N/A N/A N/A validate_s3_location params agent_installer N/A N/A bucket params N/A N/A N/A params bucket N/A N/A aws-codedeploy-{0} format N/A params region N/A N/A key params N/A N/A N/A params key N/A N/A latest/{0} format N/A N/A params system INSTALLER N/A N/A params installer N/A N/A params system INSTALLER N/A N/A start N/A N/A N/A N/A params key rfind / 1 N/A N/A params installer N/A N/A params key N/A start N/A _create_config N/A N/A self params N/A N/A N/A N/A N/A N/A sys stdout write Creating the on-premises instance configuration file...  N/A N/A N/A N/A N/A os makedirs N/A N/A params system CONFIG_DIR N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno EEXIST N/A N/A e N/A N/A N/A params config_file N/A N/A params system CONFIG_PATH N/A N/A N/A N/A shutil copyfile N/A params config_file N/A N/A params system CONFIG_PATH N/A N/A N/A N/A sys stdout write DONE
 N/A _install_agent N/A N/A self params N/A N/A N/A N/A N/A N/A sys stdout write Installing the AWS CodeDeploy Agent...  N/A N/A N/A N/A params system install params N/A N/A N/A N/A sys stdout write DONE
 N/A N/A