MCPcopy Index your code
hub / github.com/aws/aws-cli / _run_main

Method _run_main

awscli/customizations/codedeploy/install.py:64–87  ·  view source on GitHub ↗
(self, parsed_args, parsed_globals)

Source from the content-addressed store, hash-verified

62 ]
63
64 def _run_main(self, parsed_args, parsed_globals):
65 params = parsed_args
66 params.session = self._session
67 validate_region(params, parsed_globals)
68 validate_instance(params)
69 params.system.validate_administrator()
70 self._validate_override_config(params)
71 self._validate_agent_installer(params)
72
73 try:
74 self._create_config(params)
75 self._install_agent(params)
76 except Exception as e:
77 sys.stdout.flush()
78 sys.stderr.write(
79 'ERROR\n'
80 f'{e}\n'
81 'Install the AWS CodeDeploy Agent on the on-premises instance '
82 'by following the instructions in "Configure Existing '
83 'On-Premises Instances by Using AWS CodeDeploy" in the AWS '
84 'CodeDeploy User Guide.\n'
85 )
86 return 255
87 return 0
88
89 def _validate_override_config(self, params):
90 if (

Callers

nothing calls this directly

Calls 9

_create_configMethod · 0.95
_install_agentMethod · 0.95
validate_regionFunction · 0.90
validate_instanceFunction · 0.90
flushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected