Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
codedeploy
/
File Content:
register.pyc
� =��Xc @ st d d l Z d d l m Z d d l m Z d d l m Z m Z m Z m Z m Z m Z d e f d � � YZ d S( i����N( t BasicCommand( t DEFAULT_CONFIG_FILE( t validate_regiont validate_instance_namet validate_tagst validate_iam_user_arnt INSTANCE_NAME_ARGt IAM_USER_ARN_ARGt Registerc B s� e Z d Z d Z i d d 6i d d 6i i d d 6d d 6e d 6d 6i d d 6d d 6e d 6d 6d 6d 6Z e i d d 6d d 6e d 6d d 6e d 6d d 6e g Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( t registers Creates an IAM user for the on-premises instance, if not provided, and saves the user's credentials to an on-premises instance configuration file; registers the on-premises instance with AWS CodeDeploy; and optionally adds tags to the on-premises instance.t arrayt typet objects The tag key.t descriptiont stringt requiredt Keys The tag value.t Valuet propertiest itemst tagst names --tags <value>t synopsist +t nargst schemasF Optional. The list of key/value pairs to tag the on-premises instance.t help_textc C sN | } | j | _ t | | � t | � t | � t | � | j j d d | j d | j d | j �| _ | j j d d | j �| _ y� | j s� | j | � | j | � | j | � | j | � n | j | � | j r� | j | � n t j j d j t � � Wn9 t k rI} t j j � t j j d j | � � n Xd S( Nt codedeployt region_namet endpoint_urlt verifyt iams� Copy the on-premises configuration file named {0} to the on-premises instance, and run the following command on the on-premises instance to install and configure the AWS CodeDeploy Agent: aws deploy install --config-file {0} s� ERROR {0} Register the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide. ( t _sessiont sessionR R R R t create_clientt regionR t verify_sslR R t iam_user_arnt _create_iam_usert _create_access_keyt _create_user_policyt _create_configt _register_instanceR t _add_tagst syst stdoutt writet formatR t Exceptiont flusht stderr( t selft parsed_argst parsed_globalst paramst e( ( sI /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/register.pyt _run_mainD s>