Matthew Hooker
fc30f6cc0a
log tag creation.
...
closes #4427
2017-01-19 12:00:41 -08:00
Matthew Hooker
b265d2614f
builder/amazon: fix when using security_group_id
...
If `security_group_id` was specified with a group that didn't exist, packer
would go into an infinite loop waiting for it. We shouldn't make assumptions
about the status of explicitely set security groups, so let's just error out
right away if we can't find it.
2017-01-18 15:11:52 -08:00
Matthew Hooker
800351b7ca
fix panic and don't print each tag we add.
2017-01-18 11:34:36 -08:00
Roman Zhuzha
d9186dc8cf
add proper error handling for tagging source instance
2017-01-18 14:02:10 +01:00
Roman Zhuzha
a65af51a4b
apply source instance default "Name" tag only if it's not provided in run_tags
2017-01-18 12:55:18 +01:00
Roman Zhuzha
aa70c82ec8
use ConvertToEC2Tags to apply tags to source instance, add Say message
2017-01-18 12:50:20 +01:00
Matthew Hooker
377f451a9e
it's InvalidGroup
2017-01-05 16:56:49 -08:00
Matthew Hooker
e54605c120
Properly wait for security group to exist.
...
Adds check for `InvalidGroupID.NotFound` in addition to
`InvalidSecurityGroupID.NotFound`.
Uses aws's `waiter` for clarity.
2017-01-05 15:20:28 -08:00
Zanetti, David
ae5730c5a5
Querying EC2 security groups should report unexpected errors
...
As noted in #4277 , we don't report any errors from the loop waiting for
a security group to exist. Instead, we should accept 'errors' which result
from the group not yet existing, and report errors which are actual issues
the user needs to resolve (eg, IAM permissions are incorrect).
Closes #4277
2016-12-21 11:45:12 +13:00
Rickard von Essen
17eda06d61
Fixed formatting
2016-11-24 21:12:20 +01:00
ephemeralsnow
e53f4be005
Fix 'The AssociatePublicIpAddress parameter is only supported for VPC launches.'
2016-11-24 17:01:32 +01:00
Matthew Hooker
d81c06765d
fix go vet issue.
...
closes #4130
2016-11-07 10:17:53 -08:00
Matthew Hooker
d47e47cf1f
rewrite to not use private aws package
2016-11-01 18:29:18 -07:00
Matthew Hooker
c4c46c349e
implement security group waiter
2016-11-01 18:10:42 -07:00
Matthew Hooker
d920b3fbf4
run gofmt
2016-11-01 14:08:04 -07:00
Rickard von Essen
d16d5d9686
Merge pull request #3817 from ChrisLundquist/dynamic-source-ami
...
Dynamic source ami
2016-10-25 21:24:41 +02:00
Rickard von Essen
acc2689b49
builder/amazon: Allow using ssh_private_key_file and ssh_password
...
This adds support for using amazon-ebs/amazon-instance builder without
a keypair. If a ssh_private_key_file is supplied without a
ssh_keypair_name no temporary ssh keypair is created. If ssh_password is
used no temporary ssh keypair is created and the password is used when
trying to connect.
Closes #2301
Closes #3156
2016-10-02 22:20:36 +02:00
Chris Lundquist
defdd1ecf3
Merge remote-tracking branch 'origin/master' into dynamic-source-ami
2016-09-02 01:43:03 +00: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
Chris Lundquist
57e7a1a3e6
[dynamic-source-ami] fix lint error
2016-08-21 00:07:58 +00:00
Chris Lundquist
ec1abb9448
[dynamic-source-ami] proof of concept
2016-08-20 18:58:36 +00: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
Chris Bednarski
443ffd68f2
Added explicit error when SG is not working
2016-07-02 15:48:51 -07: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
Patrick Robinson
a9f914ea97
Add shutdown_behaviour option
...
This means an instance will terminate upon shutdown.
2016-06-14 14:29:10 -07: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
Mark Peek
4e1e9b788a
Merge pull request #2845 from abridgett/feature/spot_price_zero
...
spot_price of "0" to mean on demand
2015-10-26 21:51:44 -07:00
Mark Peek
fc39f07ecc
Add EbsOptimized to RequestSpotInstances ( #2806 )
2015-10-18 11:39:36 -07:00
Adrian Bridgett
da771c469e
spot_price of "0" to mean on demand
...
this helps avoid duplicating packer templates just to select
spot instances or not
2015-10-06 22:13:17 +01:00
Adrian Bridgett
8349e22df9
Add ebs_optimized support
2015-10-06 21:36:21 +01:00
Chris Bednarski
1a775c05d9
Update calls to amazon to match the upstream
...
- see http://aws.amazon.com/releasenotes/2948141298714307
- run awsmigrate-renamer on each amazon module (chroot, instance, etc.)
2015-08-17 17:44:01 -07:00
Florian Noeding
62c39888b4
amazon builder: always base64 encode ec2 user data
2015-07-31 16:34:33 +02:00
Chris Bednarski
a9c299d9c4
Merge pull request #2404 from mitchellh/b-instance-destroy
...
amazon/common: store instance ID earlier for cleanup
2015-07-28 18:24:37 -07:00
Chris Bednarski
28bf1877c2
Updated AWS SDK calls to match the 0.7.0 release of the AWS SDK
2015-07-28 17:10:21 -07:00
Mitchell Hashimoto
26aa3dd575
amazon/common: store instance ID earlier for cleanup
2015-07-07 11:07:38 -06:00
Steven Merrill
0869c9fe64
Fix #2830 .
2015-07-02 10:23:44 -04:00
Marcin Matlaszek
586cab11ee
Fixes spot instance cleanup.
2015-06-26 15:29:46 +02:00
Marcin Matlaszek
dd97a60c9b
Fix for tag creation when creating new ec2 instance.
2015-06-25 17:02:38 +02:00
Clint Shryock
d22c4173d3
fix crash when waiting for an instance that has failed
2015-06-15 11:53:21 -05:00
Mitchell Hashimoto
ccf20568a7
Merge pull request #2240 from mitchellh/f-windows
...
Windows AWS instances
2015-06-14 10:52:10 -07:00
Marcin Matlaszek
b51761ca36
Fix network interface spec when requesting spot.
2015-06-14 17:47:45 +02:00
Mitchell Hashimoto
8f6ecfd9e3
builder/amazon: various fixes (minor) to get things going
2015-06-13 23:12:59 -07:00
Mitchell Hashimoto
be4a82dfae
amazon/*: fix some merge conflicts
2015-06-10 10:33:01 -07:00
Mitchell Hashimoto
8e1db0d94c
Merge branch 'fix_amazon_instance_waits' of https://github.com/renat-sabitov/packer into renat-sabitov-fix_amazon_instance_waits
2015-06-10 10:31:21 -07:00
Seth Vargo
33ca8b7fb5
Migrate to new AWS repo
2015-06-03 17:13:52 -04:00
Mitchell Hashimoto
07734133a3
builder/amazon: fix test failures
2015-05-28 09:44:33 -07:00
Mitchell Hashimoto
3031886aaf
Merge branch 'master' of https://github.com/aocsolutions/packer into aocsolutions-master
2015-05-28 09:35:02 -07:00