Commit Graph

876 Commits (7efe3cac3d5e728ee471bbccfd1043e06e4dcafe)

Author SHA1 Message Date
DanHam ec8b70721c
Use an explicit error message when an error is expected and we don't get one
8 years ago
DanHam 82c8710af5
Use fmt.Errorf over errors.New as we only require basic error reporting
8 years ago
DanHam 99e3487795
Add missing validation and tests for Spot Instance requests
8 years ago
DanHam d5304a25e9
Pass T2 Unlimited settings to run instance step for appropriate EC2 builders
8 years ago
DanHam 6fc68754d7
Allow use of T2 unlimited by adding appropriate request for the instance
8 years ago
DanHam df7fb86984
Add tests for T2 Unlimited configuration
8 years ago
DanHam be02b3f613
Validate template settings when T2 Unlimited has been enabled
8 years ago
DanHam 482629ae90
Add config option to enable/disable T2 Unlimited for the launched instance
8 years ago
DanHam 2c339b99d2
Sort run config options alphabetically
8 years ago
Megan Marsh 6dc4b1cbdc move all of the run commands for shell-local provisioner and postprocessor into common library too
8 years ago
Megan Marsh 616b41e58f deduplicate the nearly identical communicators for the shell-local provisioner and post-processor, moving single communicator into a new common/shell-local module
8 years ago
Matthew Hooker 0521efa200
correctly log reason waiting for ami failed.
8 years ago
Matthew Hooker 7d5ebd5500
Merge pull request #6217 from alessiot77/5887
8 years ago
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.
8 years ago
Megan Marsh 1c681fc096 tests
8 years ago
Megan Marsh 556da47d35 modify validation to allow user to have the original region in the ami_regions list
8 years ago
John Davies-Colley 10aaa49beb fixing tests and funky logic 💦
8 years ago
John Davies-Colley 0c787ec9df Valadating early
8 years ago
John Davies-Colley 75320440ec adding missing quote 🙏
8 years ago
John Davies-Colley 707ec675b2 ssh interface for amazon builders 🔨
8 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