Chris Lundquist
0e248f1516
[dynamic-source-ami] make most_recent work
2016-08-20 23:08:45 +00:00
Chris Lundquist
ec1abb9448
[dynamic-source-ami] proof of concept
2016-08-20 18:58:36 +00:00
Jeremy Asher
6130b8588d
remove check for AMIs when deleting vols
...
This removes the unnecessary check for AMIs before cleaning up volumes.
AMIs will exist on a successful run, but not when a build fails after
instance creation (during provisioning for example). The following
check for instance being nil should be sufficient.
2016-08-08 14:16:43 -07:00
Ali Hamidi
c6a527dc46
throw error if encrypted ami is shared
2016-07-29 15:01:24 -07:00
Ali Hamidi
1cecda639a
add encrypted boot volume acceptance test
2016-07-29 15:01:24 -07:00
Ali Hamidi
902ae375b3
delete unencrypted snapshot
2016-07-29 15:01:24 -07:00
Ali Hamidi
53b3867c50
allow packer to create an encrypted copy of the AMI
2016-07-29 15:01:24 -07: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
Chris Bednarski
0cad32c696
Move region list into a function so we can re-use it in tests
2016-01-12 19:03:21 -08:00
Chulki Lee
20c0f6b02b
fix doc: wrong function name
2016-01-11 13:06:34 -08:00
Chulki Lee
1aa24035fc
add ap-northeast-2: Asia Pacific (Seoul)
2016-01-11 13:05:18 -08:00
Chulki Lee
7018517374
one region per line, sorted
2016-01-11 13:04:35 -08:00
Chulki Lee
3f0795b23c
sort regions by name
2016-01-11 13:04:00 -08:00
Chulki Lee
7f3f5f4bfa
add tests for all ami regions
2016-01-11 13:02:38 -08:00
Kimo Rosenbaum
09543fc4e7
Add mount_partition to amazon-chroot builder to specify a partition other than 1
2016-01-06 11:35:01 -08:00
Colin Hebert
48d242a8f8
Use pointers in the AWS API
2016-01-06 08:12:20 +01:00
Colin Hebert
9385a277c6
Fix API calls and remove az detection in chroot
2016-01-06 08:02:29 +01:00
Colin Hebert
e4930e7b57
Merge branch 'master' into subnet_az_discovery
2016-01-06 07:43:03 +01:00
David Zanetti
418da16991
Track the import task and report AMIs created from it
2015-11-23 15:55:09 +13:00
Yuya YAGUCHI
9c8405b2c6
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
2015-11-19 18:28:04 +09:00
Mark Peek
ca19688316
aws: fix test breakage due to upstream breaking change #2891
2015-10-31 11:04:50 -07:00
Luke Amdor
8682dec178
aws: build after upstream breaking change
...
see 1a69d06935
2015-10-30 13:58:56 -05:00
Mark Peek
eb15536041
Merge pull request #2774 from btd/btd-patch-1
...
Fix AMI creation - replace not allowed character , and add allowed .
2015-10-26 22:00:16 -07: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
Adrian Bridgett
3257b26fa7
one more place to check SpotPrice
2015-10-26 10:20:49 +00:00
Denis Bardadym
25e2ff7b85
Fix not allowed comma, add all allowed special characters
2015-10-19 13:41:30 +03:00
Mark Peek
6f5c64db41
Merge branch 'use-default-volumesize'
2015-10-18 13:04:41 -07:00
Mark Peek
a9716a4dc7
Merge pull request #2797 from jen20/improve-aws-instance-builder-error
...
Add suggestion to AWS Instance builder error message
2015-10-18 12:14:03 -07:00
Mark Peek
fc39f07ecc
Add EbsOptimized to RequestSpotInstances ( #2806 )
2015-10-18 11:39:36 -07:00
Mark Peek
edda3de677
Merge pull request #2806 from abridgett/feature/add_ebs_optimized_support
...
Add ebs_optimized support
2015-10-18 11:31:50 -07:00
Mark Peek
f6c7e3740f
Don't create EBS block device if VirtualName is specified
2015-10-18 11:05:21 -07:00
Mark Peek
914e78f602
builder/amazon/common: go fmt
2015-10-18 11:00:05 -07:00
Mark Peek
581c3574f6
Merge pull request #2672 from lightpriest/b-aws-ebs-block-device
...
Fix and refactor block device mapping builder
2015-10-18 10:56:53 -07:00
Mark Peek
45829c30e5
builder/amazon/*: fix go vet
2015-10-11 12:18:23 -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
James Nugent
b60e1fd862
Add suggestion to AWS Instance builder error message
...
A common cause of the failure of the bundle volume step is missing the
ec2-bundle-vol command on the target instance. This commit adds a note
about this to the error message produced as Packer output if the
bundling step fails (it is already in the documentation).
2015-10-02 17:06:33 -04:00
James Nugent
632d38a1c5
Tag EBS volumes with volume_tags in EBS builder
...
This change allows specification of a new "volume_tags" array in the
amazon-ebs builder in order to allow tagging of volumes used on the
source instance. It is implemented as a new step which is skipped if
there are no tags specified.
2015-09-11 16:39:34 -04:00
Or Cohen
2a94b596ce
Fix and refactor block device mapping builder
...
Fix NoDevice not properly configured #2398 .
Refactor the mapping builder to match BlockDeviceMapping from AWS SDK:
* If NoDevice is specified, include NoDevice only.
* If VirtualName starts with ephemeral, don't create Ebs (they are mutually
exclusive anyway)
* Otherwise, assume Ebs and create it with the exact specified attributes by
the user.
Change/add tests to reflect these changes.
2015-08-25 00:24:05 +03: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
Ian Glover
1447af5e42
Populate access and secret key for bundle_upload_command.
2015-08-13 14:58:15 +01:00
Chris Bednarski
4cc443da8e
Update use of ec2rolecreds to match upstream
2015-08-10 13:59:56 -07:00
Chris Bednarski
abb67fdd79
Fix govet issues
2015-08-05 19:41:29 -07:00
Florian Noeding
62c39888b4
amazon builder: always base64 encode ec2 user data
2015-07-31 16:34:33 +02:00
Florian Noeding
98b9d22b68
amazon builder: only fetch password for winrm
2015-07-31 15:34:25 +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
Yo Takezawa
628462b919
Use snapshot size if you don't specify a VolumeSize
2015-07-21 14:07:30 +09:00
Tommy Ulfsparre
241903d0b0
no point in setting iops on a standard volumes
2015-07-15 17:18:03 -07:00
Chris Bednarski
c615539929
Reformat long lines
2015-07-15 17:17:59 -07:00
Chris Bednarski
9365a43179
Reformat
2015-07-15 17:07:36 -07:00
Tommy Ulfsparre
ae064207d5
Add test for ephemeral block device mapping
2015-07-15 17:05:32 -07:00
Anthony Spring
224bb78175
Make EBS block device mapping optional for ephemeral virtual names.
2015-07-15 17:04:45 -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
Mitchell Hashimoto
6dd36075b2
Merge pull request #2352 from mitchellh/b-amazon-bundle
...
builder/amazon/instance: set valid bundle prefix [GH-2328]
2015-06-29 13:59:45 -07:00
Mitchell Hashimoto
98db68e36c
builder/amazon/instance: set valid bundle prefix [GH-2328]
2015-06-29 09:49:11 -07:00
Mitchell Hashimoto
b315e470c8
builder/amazon: set debug flag for get password
2015-06-29 09:40:58 -07:00
Mitchell Hashimoto
0a2e54feaf
builder/amazon: output WinRM password for debug mode [GH-2336]
2015-06-29 09:40:15 -07:00
Mitchell Hashimoto
95dd79740f
Merge pull request #2324 from tcahill/group-launch-permissions
...
Fix setting ami_groups
2015-06-29 09:30:51 -07:00
Mitchell Hashimoto
7b64723a11
Merge pull request #2327 from emate/fix-for-spot-requests-cleanup
...
Fixes spot instance cleanup.
2015-06-29 09:24:01 -07:00
Mitchell Hashimoto
aab5ca7059
update CHANGELOG
2015-06-29 09:22:33 -07:00
Marcin Matlaszek
3eaf7f38b0
Fix adding launch permissions for created ami.
2015-06-29 15:39:27 +02:00
Tom Cahill
6644d76982
Use aws.String to obtain string pointers
2015-06-26 12:08:44 -07:00
Tom Cahill
016d916d83
Fix adding groups to AMI launch permissions.
...
Previously, groups were granted launch permissions by submitting a
ModifyImageAttribute request with the UserGroups parameter set
appropriately. This is no longer valid, as the LaunchPermission
parameter must be set.
2015-06-26 10:52:27 -07:00
Clint Shryock
4d003aa5a3
builder/amazon-instance: Don't specify empty Virtualization Type
2015-06-26 10:43:13 -05:00
Marcin Matlaszek
586cab11ee
Fixes spot instance cleanup.
2015-06-26 15:29:46 +02:00
Tommy Ulfsparre
8ae0cfc759
copy and convert to pointer
2015-06-25 20:07:45 +02:00
Clint
7b9d48799e
Merge pull request #2316 from jjappi/fix-aws-tagging
...
Fix failing AMI snapshot tagging when copying to other regions.
2015-06-25 10:17:34 -05:00
Marcin Matlaszek
dd97a60c9b
Fix for tag creation when creating new ec2 instance.
2015-06-25 17:02:38 +02:00
Jani Jappinen
c537623bc6
Fix failing AMI snapshot tagging when copying to other regions.
2015-06-25 17:25:28 +03:00
Clint Shryock
7af5d5419a
builder/amazon: Fix issue with sharing AMIs with ami_users
2015-06-24 11:41:58 -05:00
Clint Shryock
3a54e6899d
code cleanup
2015-06-23 11:34:42 -05:00
Clint Shryock
29cef0eae4
builder/amazon-chroot: add mount_options configuration option
2015-06-23 11:26:13 -05:00
Clint
3884555007
Merge pull request #2289 from mitchellh/b-amazon-chroot-fixes
...
builder/amazon-chroot: various fixing and debugging of chroot builder
2015-06-23 10:53:02 -05:00
Clint Shryock
5d2ea088a2
builder/amazon-chroot: add root_volume_size to resize chroot root volume
2015-06-23 10:35:59 -05:00
Clint Shryock
8a9a59c3ca
check if newDevice.EBS is nil
2015-06-23 09:11:29 -05:00
Clint Shryock
9f8b0041f0
builder/amazon-chroot: use source image virtualization type, unless specified
2015-06-22 22:08:31 -05:00
Clint Shryock
f374edc2b8
builder/amazon-chroot: Fixes for amazon-chroot builder
...
These are needed for chroot builder to work
2015-06-22 21:34:38 -05:00
Mitchell Hashimoto
5db4d7c01f
fmt
2015-06-22 12:37:52 -07:00
Mitchell Hashimoto
944b4bf46c
common: delete file if checksum fails
2015-06-22 12:17:29 -07:00
Clint
6579219013
Merge pull request #2282 from mitchellh/f-amazon-cleanup-volumes
...
builder/amazon-ebs: Clean up orphan volumes
2015-06-22 12:56:26 -05:00
Mitchell Hashimoto
84189f7a28
builder/*: properly save interpolation context
2015-06-22 09:22:42 -07:00
Clint Shryock
dff6cf1a83
code tweak after review
2015-06-22 10:48:54 -05:00
Clint Shryock
c9714ce69e
builder/amazon-ebs: Clean up orphan volumes
...
Fixes #1783
2015-06-19 10:22:39 -05:00
Mitchell Hashimoto
9c0f37b2c9
builder/amazon: fix weird edge cases with key names [GH-2281]
2015-06-19 06:21:20 +02:00
Mitchell Hashimoto
5c290fdbc7
builder/amazon use proper key pair name
2015-06-19 06:15:16 +02:00
Mitchell Hashimoto
4da0b42fc1
Merge pull request #2054 from garnaat/amazon-chroot-check-before-umount
...
builder/amazon-chroot: Only unmount if path is actually mounted
2015-06-18 10:12:06 +02:00
Mitchell Hashimoto
b7dab2689a
fmt
2015-06-18 05:23:04 +02:00
Mitchell Hashimoto
de2004c1c9
Merge branch 'master' of https://github.com/nyetsche/packer into nyetsche-master
2015-06-15 15:21:58 -07:00
Clint Shryock
d22c4173d3
fix crash when waiting for an instance that has failed
2015-06-15 11:53:21 -05:00
Clint
2372393f64
Merge pull request #2212 from mitchellh/f-amazon-add-tags-to-snapshots
...
Add EBS snapshot tags #846 #1219
2015-06-15 10:05:57 -05:00
Clint
8fca582278
Merge pull request #2221 from mitchellh/f-amazon-force-deregister-artifacts
...
builder/amazon: Add force_deregister option
2015-06-15 10:02:30 -05:00
Mitchell Hashimoto
ccf20568a7
Merge pull request #2240 from mitchellh/f-windows
...
Windows AWS instances
2015-06-14 10:52:10 -07:00
Mitchell Hashimoto
101e5986dc
builder/amazon: enable windows for instance type too
2015-06-14 10:50:18 -07:00
Mitchell Hashimoto
b8d5bd3776
Merge pull request #2242 from emate/spot_network_interfaces_fix
...
Fix network interface spec when requesting spot.
2015-06-14 10:48:59 -07:00
Marcin Matlaszek
b51761ca36
Fix network interface spec when requesting spot.
2015-06-14 17:47:45 +02:00
Mitchell Hashimoto
e9d916a7bc
builder/amazon: don't print windows password
2015-06-13 23:14:48 -07:00
Mitchell Hashimoto
8f6ecfd9e3
builder/amazon: various fixes (minor) to get things going
2015-06-13 23:12:59 -07:00
Mitchell Hashimoto
022a115d19
builder/amazon: improve messaging
2015-06-13 22:42:10 -07:00
Mitchell Hashimoto
d23f254b76
builder/amazon: don't get password if platform not set on image
2015-06-13 22:39:19 -07:00
Mitchell Hashimoto
fd4e0e9da4
builder/amazon: StepGetPassword
2015-06-13 22:35:45 -07:00
Mitchell Hashimoto
115d583cff
helper/communicator: make host more generic
2015-06-13 19:23:33 -04:00
Mitchell Hashimoto
e557928119
builder/amazon: use helper/communicator
2015-06-13 18:16:12 -04:00
Clint Shryock
bec59b535d
builder/amazon: Add force_deregister option, to automatically deregister artifacts with name conflicts
2015-06-12 13:23:47 -05:00
Clint Shryock
86206e316d
add tags test
2015-06-12 10:39:37 -05:00
Clint
2af0f10d59
Merge pull request #2204 from mitchellh/b-aws-iam-profile-upload
...
builder/amazon-instance: Omit access, secrety key if using IAM Instan…
2015-06-11 10:55:57 -05:00
Clint Shryock
1fbf8b7f32
update create_tags for new sdk
2015-06-11 10:43:27 -05:00
Clint Shryock
a8155e17aa
merge acaire/add-ebs-snapshot-tags
2015-06-11 10:33:55 -05:00
Clint Shryock
2056fda4d3
builder/amazon: Allow spaces in AMI names
2015-06-10 16:19:36 -05:00
Clint Shryock
c9b413e3d1
builder/amazon-instance: Omit access, secrety key if using IAM Instance Profile
2015-06-10 15:18:05 -05:00
Mitchell Hashimoto
be4a82dfae
amazon/*: fix some merge conflicts
2015-06-10 10:33:01 -07:00