Rickard von Essen
3b47893eb8
builder/amazon: reverted wrongly modified ssh_test's.
2016-09-14 20:26:09 +02:00
Rickard von Essen
067155c344
builder/amazon: guard aginst empty/nil PrivateIpAddress and updated tests.
2016-09-14 00:16:09 +02:00
Rickard von Essen
7f4bee737c
Merge pull request #3752 from tarrall/issue3751-ssh-privateip-classic
...
builder/amazon: Honor ssh_private_ip flag in EC2-Classic, not just VPC
2016-09-13 22:54:00 +02:00
Rickard von Essen
120b60ae37
Merge pull request #3865 from dpiddy/amazon-ssh-retry-fix
...
amazon/common/ssh: fix saving of instance to state
2016-09-12 15:04:35 +02:00
Dan Peterson
c7af9a67bc
amazon/common/ssh: fix saving of instance to state
...
Fixes #3496
2016-09-09 10:16:53 -03:00
Jeremy Asher
1c392b23f9
generate warnings for unused options with from_scratch
2016-09-03 12:32:43 -07:00
Jeremy Asher
ef0c7543e1
add amazon-chroot post mount commands
...
This adds an additional PostMountCommands step to the amazon-chroot
builder which executes after the volume is mounted, but before the
extra chroot mounts and copy step.
2016-09-03 12:32:41 -07:00
Jeremy Asher
5e8b697a76
add from_scratch option to amazon-chroot builder
...
This provides an alternate mode for the amazon-chroot builder which uses
a blank volume to build the image. It adds StepPreMountCommands to
permit partitioning and format commands to be executed before mounting
the new volume.
2016-09-03 12:28:22 -07:00
Jeremy Asher
85ae04bb75
split up BlockDevices in amazon/common
...
This breaks up the two options provided by BlockDevices into separate
structs to allow only one of them to be used by the amazon-chroot
builder.
2016-09-03 09:58:45 -07:00
Rickard von Essen
ba629922c6
Merge pull request #3662 from ryansb/boost-spot-bid
...
(AWS Spot) Add 0.5 cents to discovered spot price
2016-08-27 03:18:59 +02:00
Krzysztof Wilczynski
d01fb65dcf
Fix. Use temporary_key_pair_name when specified. ( #3739 )
...
Fix: Use temporary_key_pair_name when specified.
This is to fix an issue where the temporary_key_pair_name configuration option
for amazon-ebs and amazon-instance builders would be ignored and replaced with
an automatically generated value using UUID, even when the option was explicitly
specified.
Remove space from the auto-generated SSH key-pair name.
Resolves #3736
2016-08-25 09:17:57 +02:00
Robert Tarrall
94bf981d3b
Honor ssh_private_ip flag in EC2-Classic, not just VPC
...
VpcId will be nil in Classic, but we may still wish to ssh to the
instance's private IP address -- if for example we are using security
groups to block SSH access via the public IP.
2016-07-26 08:15:44 -06:00
Chris Bednarski
c0b637b0c5
Merge pull request #3733 from envato/no-shutdown-behaviour-instance-backed
...
No shutdown behaviour instance backed
2016-07-19 01:49:05 -07:00
Ricard Clau
172a1c7a57
add source ami to output
2016-07-07 00:05:59 +01:00
Chris Bednarski
ee5c5260a4
Merge pull request #3663 from liv3d/add_ap-south-1
...
Add support for ap-south-1 in AWS
2016-07-06 14:09:24 -07:00
Chris Bednarski
443ffd68f2
Added explicit error when SG is not working
2016-07-02 15:48:51 -07:00
Dan Offord
4428079a68
Add support for ap-south-1 in AWS
...
Amazon recently announced support for ap-south-1 in Mumbai, adding this
to the list of known regions to Packer
2016-06-29 15:44:02 +01:00
Ryan S. Brown
c68ddef4e9
(AWS Spot) Add 0.5 cents to discovered spot price
...
Related to #2979 , in volatile spot markets the automatic price can
cause your instances to be evicted if the spot price rises. This change
adds one half a cent to your bid to protect against small amounts of
price volatility.
2016-06-29 07:00:21 -04:00
Mike LoSapio
080806243e
Added a hook to query the security groups before launching the instance - seems to catch the AWS eventual consistency nicely
2016-06-27 16:20:53 -04:00
Patrick Robinson
40bd45764c
Only set InstanceInititatedShutdownBehavior on ebs instances
2016-06-27 10:28:54 +10:00
Chris Bednarski
ab9621ab7d
Added aws shutdown_behavior to the changelog
2016-06-14 14:34:01 -07:00
Patrick Robinson
f361e1d894
Precompile regex
2016-06-14 14:29:10 -07:00
Patrick Robinson
b1d6d28a90
Add unit tests for shutdown behaviour
2016-06-14 14:29:10 -07:00
Patrick Robinson
a9f914ea97
Add shutdown_behaviour option
...
This means an instance will terminate upon shutdown.
2016-06-14 14:29:10 -07:00
owjjh
658fadbc53
changing if conditionals to be ! instead of == false
2016-06-07 09:21:43 -04:00
owjjh
d489ce9904
make fmt run
2016-06-06 14:37:09 -04:00
owjjh
de5b69a8df
Adding ability to skip region validation when using AWS
2016-06-06 14:17:12 -04:00
Chris Chalfant
601b833aaa
style and documentation changes per PR review comments
2016-03-15 08:01:20 -04:00
Chris Chalfant
8163e16e02
gofmt code
2016-03-14 13:49:42 -04:00
Chris Chalfant
72a7123a0b
Add option to tell packer not to stop the instance
...
It is sometimes desirable to sysprep a windows machine before creating
an EC2 image. The AWS-approved way to do this is to run
ec2configservice.exe -sysprep and let ec2configservice shut down the instance.
This change adds an option to disable the stop instance call issued by packer
so that the user can control when the machine is stopped.
2016-03-14 12:54:03 -04:00
Chris Bednarski
d0ab8658bc
Create a session for EC2RoleProvider; prevents crash; fixes #3123
2016-02-19 17:10:05 -08:00
Vasiliy Tolstov
feee19e4ed
file provisioner improvements
...
* allow specify source/destination as dir
* allow specify many files as source
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-12 11:48:28 -08:00
Chris Bednarski
4458de4ea0
Reformat
2016-02-11 23:53:40 -08:00
Chris Bednarski
765ec5cf39
Merge pull request #2962 from dave2/postprocess_amazon_ova
...
New post-processor: amazon-import
2016-02-11 23:38:15 -08:00
Chris Bednarski
358b5c62e2
Merge pull request #3143 from ThatGerber/iam-roles
...
IAM CLI Profile/Assume Role Support
2016-02-04 16:47:09 -08:00
Christopher Gerber
e7711c31ea
Wrong function to convert int to string.
2016-02-04 16:18:57 -06:00
Christopher Gerber
b75d561c56
Fixes more windows testing errors.
...
"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
2016-02-04 16:12:18 -06:00
Christopher Gerber
d25ba245f4
Fixes bytes to string issues in Windows build.
2016-02-04 16:05:49 -06:00
Christopher Gerber
a6aefa859f
Fixes issue in build where multiple processes were trying to access the same file.
2016-02-04 15:39:54 -06:00
Christopher Gerber
6c3e0daf24
Added tests. Updated CLIConfig to pass tests.
2016-02-04 14:56:22 -06:00
Chris Bednarski
e6b6f0b020
Merge pull request #2539 from fnoeding/amazon-ebs-fix-ec-user-data-encoding
...
amazon builder: always base64 encode ec2 user data
2016-02-03 16:47:01 -08:00
Christopher Gerber
f1ae2a2b5a
Moved assume credentials to CLIConfig. Added new functions and methods to CLIConfig. Ran gofmt.
2016-02-03 15:53:01 -06:00
Chris Bednarski
951a7e8ad3
Merge pull request #2596 from manicai/master
...
Fix for #2496 AWS credentials for instance based AMIs
2016-02-03 12:45:51 -08:00
Christopher Gerber
4cf9e36085
Changes credential/config file opener to use homedir instead of HOME environmental variable.
2016-02-03 10:43:48 -06:00
Christopher Gerber
7975c5e336
Move CLIConfig instantiation inside of ProfileName check.
2016-02-02 08:36:36 -06:00
Christopher Gerber
883acb18fa
IAM Role Switching
...
Adds initial IAM Role Switching support and support for AWS CLI Credential and Config files.
See: https://github.com/mitchellh/packer/issues/3109
2016-02-01 18:55:59 -06:00
Chris Bednarski
4490826a17
Merge pull request #3040 from kimor79/3011
...
Add mount_partition option to amazon-chroot builder
2016-01-25 22:08:07 -08:00
Chris Bednarski
1a5d5acea4
Merge pull request #2737 from jen20/ebs-volume-tags
...
Tag EBS volumes with volume_tags in EBS builder
2016-01-21 13:29:49 -08:00
Chris Bednarski
d6fad30162
Merge pull request #2955 from yayugu/feature/ami_product_codes
...
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
2016-01-20 09:13:09 -08:00
Chris Bednarski
1ab5fc8ca5
Merge pull request #3037 from ColinHebert/subnet_az_discovery
...
Add auto discovery of AZ based on the subnet
2016-01-12 19:35:54 -08:00