Menu
Amazon Elastic Compute Cloud
User Guide for Windows Instances

Adding Windows Components Using Installation Media

Windows Server operating systems include many optional components. Installing all components on each Amazon EC2 Windows Server AMI is not practical. Instead, you can use Amazon-provided, installation media EBS snapshots that have the necessary files to configure or install components on your Windows instance.

To access and install the optional components, you must find the correct EBS snapshot for your version of Windows Server, create a volume from the snapshot, and attach the volume to your instance.

Adding Windows Components Using the Amazon EC2 Console

You can use the Amazon EC2 console to find a snapshot, create a volume, and attach the volume to your instance. Before you begin, take note of the Availability Zone in which your instance is located. You must create your EBS volume in the same Availability Zone as your instance.

To find the available installation media snapshots and create a volume

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Snapshots.

  3. In the Filter list, choose Public Snapshots.

    
                        Choosing a public snapshot
  4. In the filter field, choose Owner from the Resource Attributes list.

    
                        Filtering on the Owner attribute
  5. Choose Amazon images.

  6. For the filter field again, choose Description from the Resource Attributes list.

    
                        Filtering on the Description attribute
  7. Type Windows and press Enter.

  8. Select the snapshot that matches your system architecture and your language preference (if applicable). For example, select Windows 2016 English Installation Media if your instance is running Windows Server 2016.

  9. Choose Actions, Create Volume.

  10. In the Create Volume dialog box, select the Availability Zone that matches your Windows instance, and then choose Create.

  11. In the Volume Successfully Created message, choose the volume that you just created.

  12. Choose Actions, Attach Volume.

  13. In the Attach Volume dialog box, type the instance ID, and choose Attach.

After you've attached the volume, you must connect to your instance and make the volume available. For more information, see Making an Amazon EBS Volume Available for Use. Do not initialize the volume.

Adding Windows Components Using a Command Line Tool

The following procedures demonstrate how to use the AWS CLI and the Tools for Windows PowerShell to find a snapshot, create a volume, and attach the volume to your instance. Before you begin, get the ID of your instance and take note of the Availability Zone in which your instance resides.

To find a snapshot and create a volume using the AWS CLI

  1. Use the describe-snapshots command and apply the owner-ids parameter and description filter to get a list of the available installation media snapshots.

    Copy
    aws ec2 describe-snapshots --owner-ids amazon --filters Name=description,Values=Windows*
  2. In the output that's returned, take note of the ID for the snapshot that matches your system architecture and your language preference (if applicable); for example:

    {
        "Snapshots": [
        ...
    {
                "OwnerAlias": "amazon", 
                "Description": "Windows 2016 English Installation Media", 
                "Encrypted": false, 
                "VolumeId": "vol-be5eafcb", 
                "State": "completed", 
                "VolumeSize": 6, 
                "Progress": "100%", 
                "StartTime": "2016-10-25T20:00:47.000Z", 
                "SnapshotId": "snap-22da283e", 
                "OwnerId": "711940113766"
            }, 
        
        ...
       ]
    }
  3. Create a volume from the snapshot. Specify the same Availability Zone as your instance.

    Copy
    aws ec2 create-volume --snapshot-id snap-22da283e --volume-type gp2 --availability-zone us-east-1a
  4. In the output that's returned, take note of the volume ID.

    {
        "AvailabilityZone": "us-east-1a", 
        "Encrypted": false, 
        "VolumeType": "gp2", 
        "VolumeId": "vol-0c98b37f30bcbc290", 
        "State": "creating", 
        "Iops": 100, 
        "SnapshotId": "snap-22da283e", 
        "CreateTime": "2017-04-18T10:33:10.940Z", 
        "Size": 6
    }

  5. Attach the volume to your instance.

    Copy
    aws ec2 attach-volume --volume-id vol-0c98b37f30bcbc290 --instance-id i-01474ef662b89480 --device xvdg

To find a snapshot and create a volume using the Tools for Windows PowerShell

  1. Use the Get-EC2Snapshot command and apply the Owner and description filters to get a list of the available installation media snapshots.

    Copy
    Get-EC2Snapshot -Owner amazon -Filter @{ Name="description"; Values="Windows*" }
  2. In the output that's returned, take note of the ID for the snapshot that matches your system architecture and language preference (if applicable); for example:

    ...
    DataEncryptionKeyId :
    Description         : Windows 2016 English Installation Media
    Encrypted           : False
    KmsKeyId            :
    OwnerAlias          : amazon
    OwnerId             : 711940113766
    Progress            : 100%
    SnapshotId          : snap-22da283e
    StartTime           : 10/25/2016 8:00:47 PM
    State               : completed
    StateMessage        :
    Tags                : {}
    VolumeId            : vol-be5eafcb
    VolumeSize          : 6
    ...
  3. Create a volume from the snapshot. Specify the same Availability Zone as your instance.

    Copy
    New-EC2Volume -AvailabilityZone us-east-1a -VolumeType gp2 -SnapshotId snap-22da283e
  4. In the output that's returned, take note of the volume ID.

    Attachments      : {}
    AvailabilityZone : us-east-1a
    CreateTime       : 4/18/2017 10:50:25 AM
    Encrypted        : False
    Iops             : 100
    KmsKeyId         :
    Size             : 6
    SnapshotId       : snap-22da283e
    State            : creating
    Tags             : {}
    VolumeId         : vol-06aa9e1fbf8b82ed1
    VolumeType       : gp2

  5. Attach the volume to your instance.

    Copy
    Add-EC2Volume -InstanceId i-087711ddaf98f9489 -VolumeId vol-06aa9e1fbf8b82ed1 -Device xvdh

After you've attached the volume, you must connect to your instance and make the volume available. For more information, see Making an Amazon EBS Volume Available for Use. Do not initialize the volume.