Notices: This section not yet converted to new layout. Download stats are rolling back out.

Amazon EC2 CLI / API Tools

1.7.5.1

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator gep13 on 1/7/2016.

You can use the CLI tools to manage your Amazon EC2 resources (such as instances, security groups, and volumes) and your Amazon VPC resources (such as VPCs, subnets, route tables, and Internet gateways).

To install Amazon EC2 CLI / API Tools, run the following command from the command line or from PowerShell:

C:\> choco install ec2clitools

To upgrade Amazon EC2 CLI / API Tools, run the following command from the command line or from PowerShell:

C:\> choco upgrade ec2clitools

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $ErrorActionPreference = 'Stop'; # stop on all errors
    
    $packageName= 'ec2clitools'
    $packageVersion = '1.7.5.1'
    $toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $url        = 'http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip'
    $checksum = '51D6D7DFAFBFEDF74C743DAB6B9B58A4E48232DF'
    $checksumtype = 'sha1'
    
    Install-ChocolateyZipPackage $packageName $url $toolsDir -checksum $checksum -checksumType $checksumType
    
    Install-ChocolateyEnvironmentVariable -variableName 'EC2_HOME' -variableValue "C:\ProgramData\chocolatey\lib\ec2clitools\tools\ec2-api-tools-$packageVersion" -variableType 'Machine'
    
    Install-ChocolateyPath "`%EC2_HOME`%\bin" 'Machine'
    
    Write-Warning "You must start a new prompt, or re-read the environment for the tools to be available in your command line environment."
    
    Write-Warning "For completely automatic operation you must set the environment variables AWS_ACCESS_KEY and AWS_SECRET_KEY, for details see: http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/set-up-ec2-cli-windows.html"
    
  • tools\chocolateyuninstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $packageName = 'ec2clitools'
    $zipName = 'ec2-api-tools.zip'
    
    Uninstall-ChocolateyZipPackage $packageName $zipName
    
    [Environment]::SetEnvironmentVariable('EC2_HOME',$null,'Machine')
    
    #Using .NET method prevents expansion (and loss) of environment variables (whether the target of the removal or not)
    #To avoid bad situations - does not use substring matching or regular expressions
    #Removes duplicates of the target removal path, Cleans up double ";", Handles ending "\"
    
    $PathToRemove = '%EC2_HOME%\bin'
    foreach ($path in [Environment]::GetEnvironmentVariable("PATH","Machine").split(';'))
    {
      If ($Path)
      {
        If (($path -ine "$PathToRemove") -AND ($path -ine "$PathToRemove\"))
        {
          [string[]]$Newpath += "$path"
        }
      }
    }
    $AssembledNewPath = ($newpath -join(';')).trimend(';')
    
    [Environment]::SetEnvironmentVariable("PATH",$AssembledNewPath,"Machine")
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Amazon

Copyright

Amazon

Tags

Release Notes

None

Version History

Version Downloads Last updated Status

Discussion for the Amazon EC2 CLI / API Tools Package

Ground rules:

  • This discussion is only about Amazon EC2 CLI / API Tools and the Amazon EC2 CLI / API Tools package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Amazon EC2 CLI / API Tools, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok