%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/boto_cfn.pyo |
� ���^c @@ s- d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l m Z y d d l m Z e Z Wn e k r� e Z n Xe j e � Z d Z d � Z d d d d d d d d d d d d d d d d d d d � Z d d d d d � Z d � Z d d d d d d d � Z d � Z d S( uh Connection module for Amazon Cloud Formation .. versionadded:: 2015.8.0 :depends: boto :configuration: This module accepts explicit AWS credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More Information available at http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html If IAM roles are not used you need to specify them either in a pillar or in the minion's config file: .. code-block:: yaml keyid: GKTADJGHEIQSXMKKRBJ08H key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs .. code-block:: yaml stack-present: boto_cfn.present: - name: mystack - template_body: salt://base/mytemplate.json - disable_rollback: true - region: eu-west-1 - keyid: 'AKIAJHTMIQ2ASDFLASDF' - key: 'fdkjsafkljsASSADFalkfjasdf' .. code-block:: yaml stack-absent: boto_cfn.absent: - name: mystack i ( t absolute_importt print_functiont unicode_literalsN( t six( t ElementTreeu boto_cfnc C@ s@ t s t d j t � f Sd t k r) t St d j t � f Sd S( uF Only load if elementtree xml library and boto are available. u6 Cannot load {0} state: ElementTree library unavailableu boto_cfn.existsu2 Cannot load {0} state: boto_cfn module unavailableN( t HAS_ELEMENT_TREEt Falset formatt __virtualname__t __salt__t True( ( ( s8 /usr/lib/python2.7/site-packages/salt/states/boto_cfn.pyt __virtual__>