lets try a string instead of a bool for AssociatePublicIpAddress

pull/919/head
Nathan Sullivan 13 years ago
parent 5df7bc0acf
commit 0cfb7564d5

@ -7,7 +7,7 @@ package chroot
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"

@ -3,7 +3,7 @@ package chroot
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

@ -2,7 +2,7 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

@ -2,8 +2,8 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"

@ -2,7 +2,7 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

@ -3,7 +3,7 @@ package chroot
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

@ -2,7 +2,7 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/CpuID/goamz/aws"
"github.com/mitchellh/packer/packer"
"strings"
"unicode"

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/CpuID/goamz/aws"
"github.com/mitchellh/packer/packer"
)

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/packer/packer"
"log"
"strings"

@ -1,7 +1,7 @@
package common
import (
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
)
// BlockDevice

@ -1,7 +1,7 @@
package common
import (
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"reflect"
"testing"
)

@ -22,7 +22,7 @@ type RunConfig struct {
SecurityGroupId string `mapstructure:"security_group_id"`
SecurityGroupIds []string `mapstructure:"security_group_ids"`
SubnetId string `mapstructure:"subnet_id"`
AssociatePublicIpAddress bool `mapstructure:"associate_public_ip_address"`
AssociatePublicIpAddress string `mapstructure:"associate_public_ip_address"`
TemporaryKeyPairName string `mapstructure:"temporary_key_pair_name"`
VpcId string `mapstructure:"vpc_id"`
AvailabilityZone string `mapstructure:"availability_zone"`

@ -4,7 +4,7 @@ import (
gossh "code.google.com/p/go.crypto/ssh"
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/communicator/ssh"
"time"

@ -3,7 +3,7 @@ package common
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"log"
"time"

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"os"

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"io/ioutil"
@ -18,7 +18,7 @@ type StepRunSourceInstance struct {
SourceAMI string
IamInstanceProfile string
SubnetId string
AssociatePublicIpAddress bool
AssociatePublicIpAddress string
AvailabilityZone string
BlockDevices BlockDevices

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/common/uuid"
"github.com/mitchellh/packer/packer"

@ -7,7 +7,7 @@ package ebs
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"

@ -2,7 +2,7 @@ package ebs
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

@ -2,7 +2,7 @@ package ebs
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

@ -5,7 +5,7 @@ package instance
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"

@ -2,7 +2,7 @@ package instance
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

@ -2,7 +2,7 @@ package instance
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

Loading…
Cancel
Save