AWS Tools – Update time – Windows

27-07-2017

In a previous post I wrote about the AWS tools for EC2 and their value add. Having now spent a bit of time with them, I can tell you how to upgrade them.

Basically like in Vmware, the EC2 instance needs a set of drivers to interact with the underlying Hypervisor. AWS is a lot different to Vmware though, in, that they bring to the table ;

  • drivers for the OS /Hypervisor,
  • a CloudFormation bootstrap,
  • the AWS Tools (CLI) and SDK and
  • ConfigService

Lets get started.

PV Drivers

  1. Take an image of the EC2 you’re going to update the tools on. Stop the instance, right click, select Image, Create Image – give it a name, then click Create Image. Depending on the size of the EC2 (disk) this can take anything from a few minutes to a few hours.
  2. When complete, start the EC2 back up, login with Admin rights to the machine.
  3. Check to see what version of the Tools is on there, in my case, was pretty old1
  4. Grab the latest tools from here
  5. Unzip and run the MSI
  6. Click Next
    2
  7. Select I’m Ready and Click Next3
  8. Click I Agree, Next4
  9. Leave the Defaults, Next (no guessing what Hypervisor AWS use huh)5
  10. Click Next to Start Installation6
  11. Installation will commence / complete7
  12. …….and it will automatically restart your EC2 when complete.
  13. On restart, login again with Admin rights and check that things are updated8

EC2 Config Service

Again, make sure that you have a snapshot of your EC2. In case my mate Justin (Justin Case, if you work in IT you probably know him well) comes calling.  Note for EC2 Config you need to have .NET 3.5 SP1 minimum.

  1. Backup the config.xml file from %Program Files%\Amazon\Ec2ConfigService\Settings to /tmp or somewhere
  2. Grab the installer from here
  3.  Run EC2Install.exe
  4. Check I Agree, and click Install9
  5. It will install
    10
  6. Click Close
    11
  7. Copy the config.xml file from the /tmp to %Program Files%\Amazon\Ec2ConfigService\Settings directory
  8. Confirm its updated – note the SSM Agent has also installed now. 12

AWS Tools (CLI/SDK) Update

  1. Grab the installer from here
  2. Run AWSToolsAndSDKForNet_sdk-3.3.127.0_ps-3.3.120.0_tk-1.12.1.1
  3. Click Next
    13
  4. Click I Accept, Next14
  5. Accept Defaults and click Next, OR customise if you need …15
  6. Click Install to commence16
  7. Click Finish
    17
  8. Confirm its updated OK18

CloudFormation/BootStrap update

  1. Download the Bootstrap update here
  2. Confirm its the only thing left thats out of date19
  3. Click I Accept and click Install20
  4. Will install …
    21
  5. Click Finish
    22
  6. Confirm its updated 23
  7. Restart your EC2 (good measure plus its Windows)

This  completes the update of all AWS Tools on your EC2. When you’re OK with your machine being up to date, remove your image.

References

http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_Install.html

http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Upgrading_PV_drivers.html

https://aws.amazon.com/powershell/

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-helper-scripts-reference.html

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s