Commit Graph

1013 Commits (44ba58321d9be80fa418e4dfc84c4e588a2bc309)

Author SHA1 Message Date
AlessioT 3d4c7d0df1 Feature Request: Log reason why AMI creation failed
8 years ago
DanHam 9b6fc5a58d
Remove tmp files created by builder/amazon/instance tests
8 years ago
DanHam 54e9690dff
Remove tmp files created by builder/amazon/common tests
8 years ago
AlessioT 373226e9c5 Extract state reason for failure
8 years ago
AlessioT 09bb21774d alessio.tomasino@yahoo.co.uk
8 years ago
AlessioT c27f3e9445 alessio.tomasino@yahoo.co.uk
8 years ago
Megan Marsh 59e3ec722d allow user to mount entire block device in chroot builder
8 years ago
Matthew Hooker cbdf9db832
Use contexts with amazon waiters.
8 years ago
Megan Marsh 3afb243f11 use build name to ensure that winrm password and other shared state is not overwritten if two builders need the password in the same packer run.
8 years ago
Matthew Hooker f094b3be85
update changelog
8 years ago
Matthew Hooker 302b1988a5
Restrict deregistered AMIs to those owned by self.
8 years ago
Megan Marsh 22608f3efd
Merge pull request #6088 from adongy/master
8 years ago
ADO 04790695e6 Add interpolate_build_info_test tests
8 years ago
ADO 507b3619e7 Expose more source ami data in the template
8 years ago
Joseph Wright 1913517d29 Fix formatting by running `make fmt`
8 years ago
Joseph Wright cb3699a584 Modify ebssurrogate builder to snapshot all launch devices
8 years ago
Megan Marsh 072cd6b745
Merge pull request #5998 from hashicorp/do_5895
8 years ago
Matthew Hooker b16f2ec64b
builder/amazon: Use sdk default cred providers
8 years ago
Matthew Hooker e483087574
builder/amazon: Use service default retries.
8 years ago
Megan Marsh d689e6b4d3 allow users of AWS to use the dynamically-generated admin password which we use as the winRM password as an elevated password in the Powershell provisioner, as well as an environment variable in same provisoner.
8 years ago
Josh Soref 0171dfc890 spelling: validating
8 years ago
Josh Soref 007930ec2d spelling: restricted
8 years ago
Less Mo 686cacb435
builder/amazon: Added new region cn-northwest-1
8 years ago
Matthew Hooker 2806523834
Fix issue with assume role credentials
8 years ago
Matthew Hooker 19a89a101e
builder/amazon: remove ssh_private_ip
8 years ago
Matthew Hooker 5b64f71702
Merge pull request #5764 from hashicorp/fix5760
8 years ago
Matthew Hooker 21812fa17f
Add volume and run tags if in us-gov/china
8 years ago
Matthew Hooker fad4d5c272
update tests for mapstructure behavior changes
8 years ago
Megan Marsh de2e5edf2e remove errant change in amazon builder
8 years ago
Megan Marsh 6556a851dc
fix ssh key handling
8 years ago
Matthew Hooker eafda52411
use amazon steps from master
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker a0c625ea44
Revert "working with opt-in"
8 years ago
Matthew Hooker e98f201602
working with opt-in
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker 807e88245b
trying to add context to state bag
8 years ago
Matthew Hooker ebe995c0ff
run goimports
8 years ago
Matthew Hooker cea2ab8c6d
move kms/encrypted validation to block devices
8 years ago
Matthew Hooker e968f9d6cc
spelling/style fixes
8 years ago
Jason Wieringa f6772f06be builder/amazon: Raise error when ebsvolume kms_key_id is without encrypted = true
8 years ago
Jason Wieringa 2ac59b3c27 builder/amazon: Added KmsKeyID to BlockDevice
8 years ago
Matthew Hooker f5ea1e8312
Use WaitUntilInstanceReady waiter
8 years ago
Matthew Hooker dfd5f07145
fix ebs acc test
8 years ago
Matthew Hooker c5bcb97d06
"borrow" access config code from terraform.
8 years ago
Matthew Hooker 98c2a2d1f7
builder/aws: catch static credential errors early.
8 years ago
Matthew Hooker f3dea272d9
Set session in state bag
8 years ago
Matthew Hooker f6c401a143
don't pass in accessconfig
8 years ago
Matthew Hooker 1c352726d7
Merge pull request #5719 from rchenv/issue5606
8 years ago
Rong Chen 3e92b1374e issue5606: follow the convention to use AccessConfig to create new aws session for step_create_tags etc.
8 years ago
Olivier Bazoud 8bcb469b8b builder/amazon: Added new region Paris - eu-west-3
8 years ago
Rickard von Essen 63f791570a
Merge pull request #5665 from kwilczynski/remove-sts-token-from-logging
8 years ago
Matthew Hooker f216330ba3
spot instance ena/sriov checking for all other builders
8 years ago
Matthew Hooker 4b1d8e3fe8
don't allow enhanced networking flags for spot instances.
8 years ago
Matthew Hooker 73b98b2a04
use waiter to wait for ebs instances to stop
8 years ago
Matthew Hooker dada63801b
also use waiter code for spot instances
8 years ago
Matthew Hooker 9e61005f7c
Merge pull request #5660 from hashicorp/fix_5625
8 years ago
Ben Gnoinski 5df2e040d0 Update amazon run_config.go absent ssh_private_key_file error
8 years ago
Matthew Hooker 2c1c7b9659
Merge pull request #5630 from johndaviesco/winrm_no_proxy
8 years ago
Matthew Hooker a90c45d9bb
Wait until source instance OK before continuing
8 years ago
Matthew Hooker 7b5c0900ef
Correctly set aws region if given in template along with a profile.
8 years ago
Krzysztof Wilczynski 05327b7524
amazon: Remove Session Token (STS) from being shown in the log.
9 years ago
Megan Marsh 1c681fc096 tests
9 years ago
Megan Marsh 556da47d35 modify validation to allow user to have the original region in the ami_regions list
9 years ago
John Davies-Colley 10aaa49beb fixing tests and funky logic 💦
9 years ago
John Davies-Colley 0c787ec9df Valadating early
9 years ago
John Davies-Colley 75320440ec adding missing quote 🙏
9 years ago
John Davies-Colley 707ec675b2 ssh interface for amazon builders 🔨
9 years ago
Matthew Hooker 0a24f4eb2e
don't shadow package name
9 years ago
Matthew Hooker f681faa296
fix tests
9 years ago
Matthew Hooker 545ee45567
debug region we found
9 years ago
Matthew Hooker c106e7c26c
Don't set region from metadata if profile is set.
9 years ago
Matthew Hooker 52fc0100eb
this is a critical error
9 years ago
Matthew Hooker 95e4ae251e
WIP
9 years ago
Matthew Hooker e87b468c6e
Merge pull request #5536 from hashicorp/fix5535
9 years ago
Matthew Hooker 8ab390a048
Merge pull request #5495 from smaato/master
9 years ago
Matthew Hooker f2413ff138
add delay option to security group waiter
9 years ago
Matthew Hooker d322fc6c19
Shorten metadata timeout
9 years ago
Matthew Hooker 314fc94bd8
clean up
9 years ago
Matthew Hooker 0e4ea7420b
fix tests
9 years ago
Matthew Hooker c65fa8490d
fix various bugs deregistering AMIs
9 years ago
Matthew Hooker 6c4fbe8d87
use correct default region when deregistering AMIs.
9 years ago
Mark Meyer 4c5df79222 Fix regressions introduced in the instance builder
9 years ago
Mark Meyer 309bf61257 Add missing blockdevices to ebsvolume builder
9 years ago
Mark Meyer 1cc9b3f1e3 Bring back volume tagging to ebsvolume
9 years ago
Mark Meyer 7e1646826d Check if VolumeTags is empty before tagging volumes
9 years ago
Matthew Hooker f7e269945e
add cidr validation and rename option
9 years ago
Matthew Hooker c74be87187 Merge pull request #5384 from dave2/sg-source-cidr
9 years ago
SwampDragons 512ac214b4 Merge pull request #5417 from smaato/master
9 years ago
Mark Meyer dbb3c76032 Remove redundant step and its usage
9 years ago
Matthew Hooker ae455bff99
add debugging help if ec2-upload-bundle fails
9 years ago
Mark Meyer 2661fd7869 Move building of spot instances into its own step
9 years ago
Mark Meyer 939b44b4fd Add logic to handle volumes of spot instances
9 years ago
Mark Meyer cfd6b6fed5 Change EBS builder to do tag-on-creation
9 years ago
Megan Marsh 201e8c05a0 add ami name to output
9 years ago
Zanetti, David 8a8b51be97 Allow temporary security group to have source CIDR block explicitly provided
9 years ago
Matthew Hooker 02cd6bc7f0 Merge pull request #5288 from hashicorp/fix3114
9 years ago
Matthew Hooker 4bc8e7de3d
add token variable to upload bundle command template
9 years ago
Zanetti, David 42dc1e4795 In Amazon builders, allow tag names to be interpolated like values
9 years ago
Megan Marsh 1adcce6046 Merge pull request #5284 from hashicorp/fix_5093
9 years ago
Megan Marsh 85ad1f58fb include ena_support and sriov_support in chroot and instance docs
9 years ago
Megan Marsh f19040f3aa Merge pull request #5196 from cstuntz/aws-add-tags
9 years ago
Megan Marsh 2d4bc70d7b use ami prefix to make it clear that these variables are amazon specific
9 years ago
Megan Marsh 9e2e467b31 Allow granular modification of sriov and ena enhanced networking options in amazon amis. Maintain old functionality.
9 years ago
Megan Marsh 7da52e1f77 Merge pull request #5250 from hashicorp/repro_3399
9 years ago
Łukasz Kostka 8703937cde Natural order of AMI artifacts
9 years ago
Megan Marsh 14b2d04332 make force_deregister work in all regions, not just original region.
9 years ago
Sean Chittenden cd84b17923
Fix building packer on GOOS=solaris
9 years ago
Matthew Hooker 754c80d217
create default tags as well
9 years ago
cstuntz db7f860d91 Adding tagging back to spot instances, after they're created
9 years ago
Megan Marsh a924db9a79 Merge pull request #5228 from hashicorp/4653_dont_delete_snapshots
9 years ago
Megan Marsh ef0a091720 continue, not break
9 years ago
Matthew Hooker 968eb94b80 Merge pull request #5211 from hashicorp/4653_dont_delete_snapshots
9 years ago
Megan Marsh 2d6028eb9a use named loops instead of doDelete flag
9 years ago
Megan Marsh e9ec705497 use block device mappings to know whether a snapshot existed before packer's current run. If yes, don't delete the unencrypted snapshot.
9 years ago
Megan Marsh c760e1323f don't panic if the communicator is none and the port is 0
9 years ago
cstuntz c717765154 Removing tagging post instance launch
9 years ago
cstuntz 42444e58e6 Updating step_run_source_instance to add tags at instance start instead of adding them to running instance
9 years ago
Megan Marsh 12d43c98f7 test the deduplication code
9 years ago
Megan Marsh 5f92de6a39 fix panic that occurs when ami_block_device_mappings and does not explicitly contain the root volume
9 years ago
Megan Marsh ac15b33d2b Merge pull request #5029 from hashicorp/5007_instance_stop
9 years ago
Megan Marsh f7a703dfb2 add pending to allowable states while waiting for ebs instance to stop
9 years ago
Megan Marsh d706147423 add exponential backoff retry for stopping instance in amazon
9 years ago
Matthew Hooker febc65aa7c
try again to get region from metadata
9 years ago
Matthew Hooker 8dae6b60c1 Merge pull request #4996 from hashicorp/mwhooker/4613
9 years ago
Matthew Hooker 350e8bfe0d
we don't need to look for region in metadata.
9 years ago
Matthew Hooker 94d7a4ce8d
post-processor/vagrant-cloud: try upload once
9 years ago
Matthew Hooker 4860d7179d
remove redundant log line
9 years ago
Constantin Bugneac ae03dab920 Print in the output the security group name too.
9 years ago
Matthew Hooker a619759bf7
add support for profile
9 years ago
Matthew Hooker 3fb4162660
remove code from bad merge
9 years ago
Matthew Hooker 624aaa2067
bugfix
9 years ago
Matthew Hooker 3ed7572525
remove cli_config
9 years ago
Matthew Hooker f637878822
with wrapping
9 years ago
Matthew Hooker 23084fe171
dedupe
9 years ago
Matthew Hooker 58e386827a
fix typo
9 years ago
Rickard von Essen 15f80dc5ab
aws: Drop undocumented option `profile`
9 years ago
Matthew Hooker 56c513088b
I think this was the intention
9 years ago
Matthew Hooker 94854a26d9
fix go vet issue
9 years ago
Matthew Hooker d7e39b72b2
remove dead code
9 years ago
Rickard von Essen f106e60a7e
builder/amazon: Added MFA support
9 years ago
Rickard von Essen f55c3b9d34
builder/amazon: Support assume role with assume_role_arn
9 years ago
Rickard von Essen 3833d34829
builder/amazon: Cleaned up credential handeling
9 years ago
Matthew Hooker 769ff28e03
builder/ebssurrogate: Use correct devices for AMI.
9 years ago
Matthew Hooker 11ba986abc Merge pull request #4930 from hashicorp/fix4925
9 years ago
Matthew Hooker 1f4b532ed5 Merge pull request #4948 from hashicorp/kms_key_regions
9 years ago
Megan Marsh b8c2a5fd43 fix step initializer everywhere StepAMIRegionCopy is called
9 years ago
Megan Marsh 875745ab9b one more test
9 years ago
Megan Marsh 1944f38985 update docs and clean up
9 years ago
Megan Marsh 5b35d199da golang has different style than python
9 years ago
Megan Marsh f9d7292566 builder/amazon regional KMS keys
9 years ago
Jason Ramey cc309c0e5f spelling fix
9 years ago
Matthew Hooker 0e3469e913
spell fix
9 years ago
Megan Marsh 7174a7a3d5 New map: region_kms_key_ids, allowing custom encryption keys on a per-region basis. Also new tests.
9 years ago
Matthew Hooker 77b4d47409
only delete snapshots which exist
9 years ago
Matthew Hooker c0b27dfa6f
don't try to delete extra volumes during clean up
9 years ago
Matthew Hooker 1cf4754d80
correct ami_name error reporting
9 years ago
Megan Marsh 4abb541468 fix logging to clarify that encrypt_boot needs to be set, not encrypt, and fix typo
9 years ago
Matthew Hooker 4137660b7a
fix ami name validation
9 years ago
Matthew Hooker ee5d13611f
update ssh client usage for new crypto/ssh version
9 years ago
Rémi Jouannet 45143bb6f4 add an option custom_endpoint_ec2 for amazon builder, add a condition if vpc_id is empty don't add the parameter to the aws call
9 years ago
Paul Thrasher 0be5a28080 Fix issue 4693 - Derive vpc_id from subnet_id
9 years ago
Ben Fagin 6f63881020 fixes a typo introduced in a previous change
9 years ago
luis-silva a269bbc6fa Fix issue 4875 - use retry logic when creating instance tags
9 years ago
Matthew Hooker 80d6cd91fd
remove unneeded keypair var
9 years ago
Matthew Hooker 602fd64c5d
builder/amazon: set flag to delete temporary keypair
9 years ago
Matthew Hooker da8c4004f0
builder/amazon: numbers are valid in ami name
9 years ago
Matthew Hooker 3f6b5165f2
add affirmative test case for #4762
9 years ago
Craig Barr d9041bda0c Improved the test for special character so that it doesn't get halted by less than 3 character check
9 years ago
Craig Barr 7911cfa94b Formatting as per make fmt
9 years ago
Craig Barr fdae6858c8 conforming to the standard for imports
9 years ago
Craig Barr df6337e8ab Added AMIName validation (issue 4761)
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker cc11ec3566
check for a couple errors
9 years ago
Matthew Hooker 35578d9ed1
remove unnecessary type conversions
9 years ago
Matthew Hooker 79287d7e47
simplify some code
9 years ago
Matthew Hooker 0149f679de
Print instead of Printf with no dynamic first variable.
9 years ago
Matthew Hooker d1b20b3d9c
remove a bunch of dead code.
9 years ago
Matthew Hooker 230079f73a
spell fixes
9 years ago
Matthew Hooker e4aa2a34ca
builder/amazon-chroot: nullable copy_files
9 years ago
Matthew Hooker 74c8c585f5
builder/amazon: report tag creation
9 years ago
Matthew Hooker bd76b7bb6f
builder/amazon: validate ssh key name/file
9 years ago
Matthew Hooker 50d9546658
builder/amazon: set force_deregister to true on -force
9 years ago
Rickard von Essen 2300b102b7 amazon: Step Region Copy crashing on device mapping
9 years ago
Matthew Hooker 9c027aa70b Merge pull request #4601 from mitchellh/ebssurrogate-copy-ami
9 years ago
James Nugent e856339309 build/amazon-ebssurrogate: Add region copy, attributes, tags steps
9 years ago
James Nugent 1eec5bf058 builder/amazon-ebssurrogate: Exclude duplicate root volume
9 years ago
Matthew Hooker fd1b00a0d1
use aws helper method
9 years ago
Matthew Hooker 61976dfd86 Merge pull request #4578 from life360/enable_ena
9 years ago
Matthew Hooker 6a7c37beb6
builder/amazon-chroot: support encrypted boot volume
9 years ago
Matthew Hooker 2cb9b32acf
don't attempt to delete non-existant key when using agent auth
9 years ago
Matthew Hooker f95514c120
fix ssh agent authentication
9 years ago
Aaron Stone 1cc3cdf7b5 Always set both SRIOV and ENA when Enhanced Networking is enabled
9 years ago
Richard Owen 33a4c2e13b Change EC2 WindowsPasswordTimeout to 20 minutes
9 years ago
James Nugent 635aeb765b amazon/ebssurrogate: Add New Builder
9 years ago
Rickard von Essen c9259d116f builder/amazon-ebsvolume: Fix interpolation of block_device
9 years ago
Rickard von Essen de7388fa0a
builder/amazon-ebsvolume: Fixed interpolation of tags
9 years ago
Rickard von Essen 6e891cf682
Fixed botched merge and review comments
9 years ago
Rickard von Essen ba9cae5078 builder/amazon: Add SourceAMI and BuildRegion template
9 years ago
Matthew Hooker fc30f6cc0a
log tag creation.
9 years ago
Matthew Hooker 56b5e97bf4
verify given security group
9 years ago
Matthew Hooker b265d2614f
builder/amazon: fix when using security_group_id
9 years ago
Matthew Hooker f5bf588393
tag all volumes
9 years ago
Matthew Hooker 800351b7ca
fix panic and don't print each tag we add.
9 years ago
Roman Zhuzha d9186dc8cf add proper error handling for tagging source instance
9 years ago
Roman Zhuzha ae016a1f25 simplify code flow: skip the step if no run_volume_tags provided
9 years ago
Roman Zhuzha a65af51a4b apply source instance default "Name" tag only if it's not provided in run_tags
9 years ago
Roman Zhuzha 36d8a1df1d use common.ConvertToEC2Tags to apply tags to source EBS volumes, change Say message
9 years ago
Roman Zhuzha aa70c82ec8 use ConvertToEC2Tags to apply tags to source instance, add Say message
9 years ago
Matthew Hooker c1f5545986
compress pr #4395
9 years ago
Richard Moore 9435fa62e3 Output error causing ebs volume deletion failure
9 years ago
Rickard von Essen 26fe9cf339
builder/amazon: Fix crash in amazon-instance
9 years ago
Matthew Hooker 377f451a9e
it's InvalidGroup
9 years ago
Matthew Hooker e54605c120
Properly wait for security group to exist.
9 years ago
Matthew Hooker aef6e0e93f Merge pull request #4304 from dave2/gh-4277
9 years ago
Travis Harrington e31d75eca8 Quick fix for issue #4340
9 years ago
Rickard von Essen 4b1e014be8
builder/amazon: Crashes when multiple EBS vols are used
9 years ago
Zanetti, David ae5730c5a5 Querying EC2 security groups should report unexpected errors
9 years ago
Matthew Hooker e4f6eaae9b Merge pull request #4231 from artburkart/force-delete-snapshot-patch
9 years ago
Rickard von Essen d3c2239b9e
builder/amazon: Change shutdown_behaviour to shutdown_behavior
9 years ago
Rickard von Essen c24b4423b2 builder/amazon: Added new region London - eu-west-2
9 years ago
Alexander Krasnukhin ac98aad1df Fix log statement
9 years ago
Matthew Hooker f1fb942219
add ca-central-1 to list of known aws regions.
10 years ago
Rickard von Essen 5c4d331a34 Added missing LaunchPermission
10 years ago
Rickard von Essen 4ce3b8712a
Replace unencrypted EBS snapshots with encrypted
10 years ago
Rickard von Essen c3a352955e amazon: Added snapshot_users and snapshot_groups
10 years ago
Ari Aviran 46f217f255 amazon - Snapshot permissions correctly applied
10 years ago
Rickard von Essen d7a7d8c852
It's not possible to share encrypted AMI's
10 years ago
poida 8b13b75097 Updated documentation and error messages
10 years ago
poida 7ea17e1630 Allow custom encrypted AMIs to be shared
10 years ago
poida 3eed6fd508 Added KMS CMK support to EBS builder
10 years ago
Rickard von Essen 8d2ceea5f1 builder/amazon: crash on tagging snapshot when snapshot_tags is unset
10 years ago
Rickard von Essen bcc7f455b3 amazon: Fix source_ami_filter ignores owners
10 years ago
Arthur Burkart 576f6f1b39 Fixes acceptance test
10 years ago
Matthew Hooker 832de2104b
Revert "Merge pull request #4230 from mitchellh/revert-4223-closes_3320"
10 years ago
Matthew Hooker f5c3c25d2b Revert "Adds `force_delete_snapshot` flag"
10 years ago
Matthew Hooker f9f9d82419 Merge pull request #4223 from artburkart/closes_3320
10 years ago
Arthur Burkart 5b59f56cdb Adds `force_delete_snapshot` flag
10 years ago
Rickard von Essen 99ee610afa
builder/amazon: Fix SSH Agent
10 years ago
Matthew Hooker aedf4ca465 Merge pull request #4141 from mitchellh/ebsvoluemartifact
10 years ago
Matthew Hooker 50267572a4
add ebsvolume artifact
10 years ago
Rickard von Essen a09f20f996 Merge pull request #4015 from artburkart:closes_3908
10 years ago
Arthur Burkart 0c7e73b1cf
Implements Snapshot tagging
10 years ago
Rickard von Essen 17eda06d61
Fixed formatting
10 years ago
ephemeralsnow e53f4be005 Fix 'The AssociatePublicIpAddress parameter is only supported for VPC launches.'
10 years ago
Rickard von Essen 96e9a8e6e9 Removed default value for ssh_username
10 years ago
Arthur Burkart 2e65867cba Closes #3908: Adds snapshot tag overrides
10 years ago
Matthew Hooker 9a91ae4e8f
fix new session error when creating cred chain.
10 years ago
Matthew Hooker d81c06765d
fix go vet issue.
10 years ago
Matthew Hooker f3f5f89fe6 Merge pull request #4096 from mitchellh/filterday
10 years ago