Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
cloudformation
/
File Content:
package.pyc
� =��Xc @ s� d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z e j e � Z d e f d � � YZ d S( i����N( t Config( t S3Uploader( t Template( t yaml_dump( t exceptions( t BasicCommandt PackageCommandc B s� e Z d Z d Z e j d d � Z i d d 6e d 6d d 6i d d 6e d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6d d 6g Z d � Z d � Z d � Z RS( s� Successfully packaged artifacts and wrote output template to file {output_file_name}. Execute the following command to deploy the packaged template aws cloudformation deploy --template-file {output_file_path} --stack-name <YOUR STACK NAME> t packaget cloudformations _package_description.rsts template-filet namet requireds; The path where your AWS CloudFormation template is located.t help_texts s3-bucketsh The name of the S3 bucket where this command uploads the artifacts that are referenced in your template.s s3-prefixs� A prefix name that the command adds to the artifacts' name when it uploads them to the S3 bucket. The prefix name is a path name (folder name) for the S3 bucket.s kms-key-idsf The ID of an AWS KMS key that the command uses to encrypt artifacts that are at rest in the S3 bucket.s output-template-files� The path to the file where the command writes the output AWS CloudFormation template. If you don't specify a path, the command writes the template to the standard output.s force-uploadt store_truet actions� Indicates whether to override existing files in the S3 bucket. Specify this flag to upload artifacts even if they match existing artifacts in the S3 bucket.c C s | j j d d t d d � d | j d | j �} | j } t j j | � sc t j d | � � n | j } t | | | j | j | j | j � | _ | j } | j | � } t j j d � | j | | � | r| j j d | d t j j | � � } t j j | � n t j j � d S( Nt s3t configt signature_versiont s3v4t region_namet verifyt template_paths t output_file_namet output_file_pathi ( t _sessiont create_clientR t regiont verify_sslt template_filet ost patht isfileR t InvalidTemplatePathErrort s3_bucketR t s3_prefixt kms_key_idt force_uploadt s3_uploadert output_template_filet _exportt syst stdoutt writet write_outputt MSG_PACKAGED_TEMPLATE_WRITTENt formatt abspatht flush( t selft parsed_argst parsed_globalst s3_clientR t buckett output_filet exported_strt msg( ( sL /tmp/pip-build-uEGWVr/awscli/awscli/customizations/cloudformation/package.pyt _run_mainh s6 c C s7 t | t j � | j � } | j � } t | � } | S( N( R R t getcwdR$ t exportR ( R/ R t templatet exported_templateR5 ( ( sL /tmp/pip-build-uEGWVr/awscli/awscli/customizations/cloudformation/package.pyR&