2017-07-07 60 views

回答

0

我提交了PR去年增加2個AWS模塊:boto3boto3_wait

這兩個模塊允許您使用boto3與AWS API進行交互。

舉例來說,你可以通過調用associate_iam_instance_profile方法在EC2服務連接作用到現有的EC2實例:

- name: Attach role MyRole 
    boto3: 
    service: ec2 
    region: us-east-1 
    operation: associate_iam_instance_profile 
    parameters: 
     IamInstanceProfile: 
     Name: MyRole 
     InstanceId: i-xxxxxxxxxx 

隨意給PR豎起大拇指,如果你喜歡它! ;)

除此之外,您可以使用AWS dynamic inventory通過標記定位實例。

相關問題