This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import boto3 | |
| # you can assign role in the function like below | |
| # ROLE_ARN = 'arn:aws:iam::01234567890:role/my_role' | |
| # | |
| # or you can pass role as an evironment varibale | |
| # ROLE_ARN = os.environ['role_arn'] | |
| ROLE_ARN = = os.environ['role_arn'] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/python2 | |
| ##### | |
| # | |
| # Description | |
| # ----------- | |
| # | |
| # This is an Ansible dynamic inventory script that reads any Ansible hosts file | |
| # and transforms it into the JSON data structure. | |
| # | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <# | |
| This script performs the 'search' phase of a Windows Update, using the standard WUA API. | |
| It does not download or install updates. | |
| Sole purpose of this script is to find out how long it takes to download the required cabfile, | |
| then process it against a live system and return the list of updates available for that system. | |
| #> | |
| function DownloadFile { | |
| param ( | |
| [Parameter(Mandatory=$true,Position=0)] $url, | |
| [Parameter(Mandatory=$true,Position=1)] $file | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #requires -version 2 | |
| <# | |
| .SYNOPSIS | |
| <Overview of script> | |
| .DESCRIPTION | |
| <Brief description of script> | |
| .PARAMETER <Parameter_Name> | |
| <Brief description of parameter input required. Repeat this attribute if required> |