Commit Graph

1242 Commits (5aed151b1f72d30e6bd52fa2dad2efbb600fe5a5)

Author SHA1 Message Date
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
6 years ago
Megan Marsh 601007e3e2 pas data into provisioners well
6 years ago
Oded Priva 5e81c6f44e added the option to skip IAM instance profile validation (#8457)
6 years ago
deisenzimmer 2b3935778e amazon-ebssurrogate plugin: StepSnapshotVolumes: Added mutex to synchronise map access across threads. (#8432)
6 years ago
Megan Marsh de9f391a1c
Merge pull request #8430 from hashicorp/fix_8359
6 years ago
Megan Marsh fcda07ee6a clarify docs by removing unclear string (#8439)
6 years ago
Moss 28c720bd3a Organize imports
6 years ago
Moss 250643d54b Remove 5 sec sleep after adding iam instance profile
6 years ago
Moss 4516978555 Fix request retry mechanism to run aws instance
6 years ago
Jon Allie c31bbcf4cf builder/amazon: AmiFilterOptions.GetOwners: avoid taking the address of a loop iterator var (#8417)
6 years ago
Mike Dziedziela 7c3e032fb7 amazon docs: update block-device-configuration docs (#8395)
6 years ago
Megan Marsh 59e6e1d4d5
Merge pull request #8393 from hashicorp/fix_8362
7 years ago
Megan Marsh 818d9bb087 send to step run spot instance
7 years ago
Megan Marsh 67c3373107 enable no_ephemeral for spot devices, clean up ranging behavior, update docs
7 years ago
Anthony Dong 2e989088e5 amazon-ebssurrogate: allow enabling ena/sr-iov on spot instances
7 years ago
Megan Marsh 08e97ba4d8 generate code for no_ephemeral option
7 years ago
Megan Marsh 0e2bdc8be6 forcibly prevent ephemeral drives from being created in the amazon-ebs builder, when no_ephemeral is set
7 years ago
DanHam b40e5d90b6
builder/amazon/common/step_pre_validate: Return DescribeVpcs errors
7 years ago
nywilken afb880c134 test/builder/amazon/common/step_pre_validate: Update DescribeVpcs mock
7 years ago
DanHam 074be9942d
Only validate the user has provided a subnet_id when vpc_id has been set
7 years ago
nywilken f9f4726eff builder/amazon/step_pre_validate: Add check for non-default VPCs
7 years ago
Megan Marsh dfa134cd98 ditch else statement for improved clarity
7 years ago
Megan Marsh ce8bca349f Update builder/amazon/ebs/step_create_ami.go
7 years ago
Megan Marsh a35ac0127e fix bug in step_region_copy
7 years ago
nywilken 488e539f63 builder/amazon: Add helper function for checking against AWSError
7 years ago
Megan Marsh 6e2456d028 make error messaging around ResourceNotReady better, update docs with other possible issues (#8349)
7 years ago
cove 2898d66812
retry runinstances aws api that wasn't retried and could fail
7 years ago
Megan Marsh 6c704f7046 Revert "fix template imports"
7 years ago
Megan Marsh 517834d528 Revert "Revert "remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name""
7 years ago
Megan Marsh fcb65ee422
Merge pull request #8307 from hashicorp/fix_8116
7 years ago
Megan Marsh e9e4c102e5 delete amazon import post-processor intermediary snapshots
7 years ago
Adrien Delorme 1b7ef252d2
Merge pull request #8303 from alrs/amazon-builder-cleanup
7 years ago
Lars Lehtonen d072079899
builder/amazon/common: remove dead test type and function mockEC2Conn_Modify_EBS.ModifyInstanceAttribute()
7 years ago
Lars Lehtonen 953be1603b
builder/amazon/common: remove dead test type and function mockEC2ConnSpot.DescribeSpotPriceHistory()
7 years ago
Lars Lehtonen 7a09f9c678
builder/amazon/common: remove dead test function fakeModifyEBSBackedInstanceState()
7 years ago
Lars Lehtonen 0a13b620d6
builder/amazon/common: remove dead test function StepModifyEBSBackedInstance_EnableAMIENASupport()
7 years ago
Lars Lehtonen c74df8b652
builder/amazon/common: remove dead test function getMockConnSpot()
7 years ago
Lars Lehtonen e5e2bfa83f
builder/amazon/common: remove nil check on slice, len() on nil slices is zero
7 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
7 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Megan Marsh 6191b9c8c6
Merge pull request #8288 from hashicorp/fix_8271
7 years ago
Megan Marsh d084cd1895 Update builder/amazon/common/ami_config.go
7 years ago
Megan Marsh e9f02e44cb add test to catch this case
7 years ago
Megan Marsh 7cf47fc463 add some extra layers of validation to make sure that people don't trip over magical encrypt_boot settings later in the build
7 years ago
Megan Marsh e2283445f2 need to initialize variables scoped to the individual loop, because the address of k,v stay the same and that means we overwrite previous variables when assigning them to the struct directly.
7 years ago
Megan Marsh a783a09ea3
Merge pull request #8269 from paulmey/paulmey/generalize-chroot
7 years ago
Megan Marsh 7928b5b045 fix transcription error from when we moved to generated docs
7 years ago
Paul Meyer 3be7d81ce2 Move common steps together
7 years ago
Paul Meyer e6dfe301ac Move CommandWrapper & ShellCommand to common
7 years ago
Megan Marsh b9245a402d add structure to its own struct to make generated code stop complaining
7 years ago
Megan Marsh 5614f307fb regerate code
7 years ago
Megan Marsh d15f43e4eb
Merge pull request #8232 from hashicorp/artifact-tree
7 years ago
Bernard Baltrusaitis ec1d70dc44 adding required changes
7 years ago
Bernard Baltrusaitis 65d1447b64 adding formatting
7 years ago
Bernard Baltrusaitis 6e2146324f Merge branch 'master' of github.com:b-b3rn4rd/packer
7 years ago
Bernard Baltrusaitis 8b83cca064 adding temporary instance profile document policy
7 years ago
Adrien Delorme cf1555bf17 Merge remote-tracking branch 'origin/master' into artifact-tree
7 years ago
Paul Meyer 977ca5be1c Add StepCopyFiles and StepChrootProvision
7 years ago
Paul Meyer 9a3e6661b1 Add StepMountExtra
7 years ago
Paul Meyer addbdedea9 Add StepPostMountCommands
7 years ago
Paul Meyer 4d750ddefa Reuse amazon/chroot/step_pre_mount_commands.go
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme 221e72e9c3 builder.amazon.common: remove pointer (*) from []*string and map[*string]*string types
7 years ago
Adrien Delorme 8b8c2fc138 builder.amazon.chroot: remove specific BlockDevice definition
7 years ago
Megan Marsh f05fd3969f
Merge pull request #8212 from hashicorp/fix_8204
7 years ago
Megan Marsh 2e20facc8b fix tests
7 years ago
Megan Marsh 0e70e0e5a4 fix template imports
7 years ago
Megan Marsh 44f91c9afc Revert "remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name"
7 years ago
Megan Marsh 4bc381183d make aws instsance builder work with recent changes for volume copy
7 years ago
Megan Marsh e283023d9b make sure step_register_ami in chroot builder respects encryption and ami skip build retion values once the copy happens
7 years ago
Megan Marsh 469af8e592 ebssurrogate builds didn't keep up with recent optimizations to region encryption in the ebs builder, and that was causing bugs with the common ami region copy step
7 years ago
Adrien Delorme d4600a7716 fix go imports
7 years ago
Megan Marsh 0026792d2f remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name
7 years ago
Megan Marsh e16fb19bfc don't abort on a single error if another availability zone was able to create the instance
7 years ago
Megan Marsh eccf0fb51d update docs
7 years ago
Megan Marsh e047b97bf7
Merge pull request #8162 from hashicorp/fix_8154
7 years ago
Megan Marsh ac6e7a4800 updates tests to validate that ssh_host value supplied in the template overrides all else
7 years ago
Adrien Delorme 941dc394f0 Update step_run_spot_instance.go
7 years ago
Adrien Delorme d049284120
Update builder/amazon/common/step_run_spot_instance.go
7 years ago
Adrien Delorme 07e97e26de
step_run_source_instance.go: make sure we use the right ShouldRetry error
7 years ago
Megan Marsh c722009159 we only need one describeInstances call, not 3, and it should be wrapped in a retry
7 years ago
Megan Marsh e47059aaca put retry around describeinstances call in amazon
7 years ago
Megan Marsh 31bb1e818f fix tests
7 years ago
Megan Marsh 0cbd3ff0f3 make sure amazon builders respect ssh_host option
7 years ago
Megan Marsh 72d393c95a update docs to show a use case for block device mappings
7 years ago
Adrien Delorme 4fb05e5bc4 fix test
7 years ago
Adrien Delorme 792f61a4ad fmt
7 years ago
Adrien Delorme 849de792da re-apply doc changes of master
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme 4d4bd38afa
Merge pull request #8087 from hashicorp/fix_8048
7 years ago
Megan Marsh 9503802814 adding ctx makes the cancel channel redundant
7 years ago
Megan Marsh 4b497006b3 add retry wrapper to query so it handles rate limiting
7 years ago
Adrien Delorme 146b88ba1e Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme de9bb26f62
Merge branch 'master' into fix_7959
7 years ago
DanHam bbeb1a3528
Delete any `run_volume_tags` applied to EBS volumes at instance creation
7 years ago
DanHam 61b1605a85
More accurate error description; Add comments; Add output
7 years ago
DanHam 430d41fbf9
Add option to enable tagging of the running instances volumes
7 years ago
DanHam 30070ffb30
Sort fields and options alphabetically
7 years ago
Adrien Delorme 9f8e9893b3 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme 86cee5cbef
Merge pull request #8034 from cove/retry-describe-instances
7 years ago
cove 87e0a3b5e7 add prevalidating AMI name retries so the build doesn't fail when throttled
7 years ago
Adrien Delorme 9d0bc476d9 add ommited struct interpolation
7 years ago
Adrien Delorme 239f97471c fix ebs volume tags doc field
7 years ago
Adrien Delorme 5517d41468 make sure all documentation fields are there
7 years ago
Adrien Delorme 2efc94521b use trilean initializers in test where missing
7 years ago
Megan Marsh 6a895db9be converte block device encryption to trilean
7 years ago
Megan Marsh 1d9bba6fe3 change AMIEncryptBootVolume to trilean
7 years ago
Megan Marsh 1a6adadb89 convert EnableAMIENASupport to trilean in code
7 years ago
Megan Marsh 3c3f7f26ce implement custom data type "trilean" (tri-state-boolean) to track booleans which have a "null" or "unset" state. Previously we used *bool for these template options, but it turns out that those won't work because "unset" will evaluate to "false" if a user is using template variables to set the option that maps to a *bool.
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh 4aa33306cb make sure that fleetId exists before trying to stick it into error message
7 years ago
Megan Marsh 316a30b31d fix spot_tags
7 years ago
Megan Marsh 9f6d14c75a work around spot_tags related regression and bad fleet cleanup in spot instances
7 years ago
Megan Marsh b42701380c add test for nil case
7 years ago
DanHam 088151e51d
Type assertion safety - fix panic when key cannot be retrieved from statebag
7 years ago
Christian Muehlhaeuser 216afbaa8b
Fixed various typos
7 years ago
Megan Marsh 54d2ad5028 refactored step_ami_region_copy to fix bugs and clarify assumptions; added more tests for that step.
7 years ago
Megan Marsh 39a4da4d07 add code to deduplicate the region list, and to make sure that the original region's kms key id is in the map.
7 years ago
Megan Marsh 6ad975f296 Revert "move SSHInterface/SSHIPVersion fields to communitator.Config struct"
7 years ago
Megan Marsh 62120c5c0b
Merge pull request #7813 from hashicorp/stop_calculating_spot_bids
7 years ago
Megan Marsh d4b6a61445 don't store names of volumes we will be deleting when the instance terminates
7 years ago
Megan Marsh 42611e6004 fix build
7 years ago
Megan Marsh a60f7e395e add a test to make sure we don't error becaue of spot price auto product, yet
7 years ago
Megan Marsh c722afe707 stop calculating spot bids; amazon changed the way spot instances are priced to be stable rather than bid-based, so when user sets auto, we can just default to the ondemand price and know that they'll get the same price as everyone else bidding at that time.
7 years ago
Daniel Rodgers-Pryor 8a9753032c Allow EC2 fleet packer instances to run in parallel
7 years ago
Adrien Delorme 02421bad33 simplify BlockDevice prepares
7 years ago
Adrien Delorme 433c40d72d make block device example less specific
7 years ago
Adrien Delorme 8cea5d409a doc ebsvolume builder using partials
7 years ago
Adrien Delorme aeb898d598 document amazon-instance builder with partials
7 years ago
Adrien Delorme c54879717b document ebssurrogate with partials
7 years ago
Adrien Delorme 9f4c8fb321 document ebs builder using partials
7 years ago
Adrien Delorme a476ab79d7 document chroot builder using partials
7 years ago
Adrien Delorme dcc22df609 aws: move the OmitFromArtifact field in ebssurrogat where it's being used
7 years ago
Adrien Delorme a86aae1c7e mode KmsKeyId to chroot block device, as it's only used there
7 years ago
Adrien Delorme 9989845ada add BuildEC2BlockDeviceMapping func to the BlockDevice type
7 years ago
Adrien Delorme c696878d2e aws block devices mapping: BlockDevices.Build -> BuildEC2BlockDeviceMappings()
7 years ago
Adrien Delorme ff2e0298ba simplify block devices utilisation by removing intermediary types
7 years ago
Adrien Delorme 78b29d1a74 up AMIBlockDevices docs
7 years ago
Megan Marsh 305592d8ed fix copy logic and tests
7 years ago
Megan Marsh 8cc82ca8d2 add broken test
7 years ago
Megan Marsh 0d55bc46ee add skip_save_build_region flag to fix naming conflicts when building for multiple regions
7 years ago
Adrien Delorme daa9f9d34e Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh 1c3b234b55
Merge pull request #7737 from hashicorp/document_retry
7 years ago
Adrien Delorme 6e3dc1aa9a Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme 98206d59d7 aws: step_create_tags make the max waiting time 30s and not 30ns
7 years ago
Pratyush Singhal d92e82c43f refactor: replace the maxBackoff from 30 nanosecond to 30 seconds
7 years ago
Pratyush singhal d4b0cb68e3 feat: add retry for temp key-pair generation in amazon-ebs
7 years ago
Adrien Delorme 8e857d64f1 aws: rewrap struct comments for documentation generation
7 years ago
Adrien Delorme 4bf6a56d71 split communitacor.SSH & communitacor.WinRM to facilitate documentation
7 years ago
Adrien Delorme 4399684372 make fmt autogenerated docs
7 years ago