Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Incorrectly sets BlockDeviceMapping.1.Ebs.DeleteOnTermination for non-EBS mapped volumes #123

Closed
@ianatha

Description

As of 9e419ba, a request like Action=RunInstances&BlockDeviceMapping.1.DeviceName=%2Fdev%2Fsdb&BlockDeviceMapping.1.Ebs.DeleteOnTermination=false&BlockDeviceMapping.1.VirtualName=ephemeral0 will be generated for the following BlockDeviceMapping array:

block_devices := []ec2.BlockDeviceMapping{
    ec2.BlockDeviceMapping{
        DeviceName: "/dev/sdb",
        VirtualName: "ephemeral0",
    },
}

(There should be no BlockDeviceMapping.1.Ebs.DeleteOnTermination.)

However, this causes EC2 to interpret the BlockDeviceMapping as referring to an EBS volume (even though it could be referring to an instance-store volume).

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions