Commit Graph

1370 Commits (90fb09e52a2558c59eaf87a3adabcb3b59cd1d8d)

Author SHA1 Message Date
Wilken Rivera 3ae7ab994b step_create_ssm_tunnel: Add port availability check for LocalPortNumber
6 years ago
Wilken Rivera 08dc2cb847 Remove call to unstubbed session start
6 years ago
Wilken Rivera f498866c3a Update validation for session_manager connectivity
6 years ago
Wilken Rivera 2f09b74587 amazon/builder: Move port validation for security group into RunConfig.Prepare
6 years ago
Wilken Rivera 3f6b28b70c Add SSMTunnel step to other amazon builders, minus chroot
6 years ago
Wilken Rivera 743df19af2 Add tests for driver and ssm tunnel step
6 years ago
Wilken Rivera e53d6aea66 amazon/ssm_driver: Update to support command context
6 years ago
Wilken Rivera 5e14089851 tests/builder/amazon: Add basic testing for session_manager
6 years ago
Wilken Rivera 60e0ba7e68 Update iam instance profile name
6 years ago
Wilken Rivera d5a0262d6c builder/amazon/instance: Add session manager support
6 years ago
Wilken Rivera e515aefee3 Add validation checks for session_manager
6 years ago
Wilken Rivera c1d2477d18 builder/amzon: Update port configuration for WinRM
6 years ago
Wilken Rivera fbffbd1899 docs/builder/amazon: Add short blurb for connecting via the AWS session_manager interface
6 years ago
Wilken Rivera 520061dee6 builder/amazon: Update Session Manger connectivity
6 years ago
Wilken Rivera 3dd46eb5f4 Add PoC of connectivity using session-manager-plugin
6 years ago
Wilken Rivera 16604373ac initial ssm tunnel changes - not working
6 years ago
Megan Marsh f0d2680426
remove spot_price_auto_product from docs (#9173)
6 years ago
Megan Marsh 7e0cfd8b77 add undocumented tag to struct-markdown generator so that we can leave internal-use-only fields out of docs
6 years ago
Adrien Delorme 73242e8de4 make sure keyvalue and namevalue filters are using the same naming as the service being used
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Jeff Escalante 2999934326
fix generation script, bugfixes in source comments, update website paths in primary codebase
6 years ago
Jeff Escalante 9165be87da
packer.io prefix removal, html extension remove for in-code errors
6 years ago
Jeff Escalante 4afd107eeb
patch source files for extensions changes
6 years ago
Jeff Escalante 37300c7203
fix backtick errors
6 years ago
Jeff Escalante bcc848a83d
were rendering yay
6 years ago
Moss 185deeeb38 Fix provisioner acc-test builder and provisioner store
6 years ago
Wilken Rivera b183c5498f provisioner/powershell: Add basic Powershell provisioner acceptance tests
6 years ago
Sylvia Moss 665330de92
Write generic Builder-Provisioner acceptance test logic (#8963)
6 years ago
Megan Marsh 8ae6256c03 add test of NoEphemeral
6 years ago
Megan Marsh fc36a37db8 only set NoDevice if NoEphemeral is set; otherwise, legit block device mappings get destroyed
6 years ago
Adrien Delorme fab344a1fc Update ami_config.go
6 years ago
Adrien Delorme 88297c796d Merge branch 'master' into hcl2_singular_blocks
6 years ago
Adrien Delorme 911dc5ad95 wip
6 years ago
Adrien Delorme b5e8750f5f Change key/value to name/value to remain consistent with Terraform
6 years ago
Adrien Delorme 3cae1a81ef up tests
6 years ago
Adrien Delorme d532bb376c wip
6 years ago
Adrien Delorme c845436e32 KeyValues.CopyOn: make sure a receiving nil map is set too
6 years ago
Adrien Delorme 87d6b2433f make generate
6 years ago
Adrien Delorme e1c84806cc rewrap
6 years ago
Adrien Delorme 392afa30cf Update block_device.go
6 years ago
Adrien Delorme fc837e3698 Update run_config.go
6 years ago
Adrien Delorme ce8d3d3747 wip
6 years ago
Adrien Delorme 0cbf80dafe wip
6 years ago
Adrien Delorme dab689ce2e WIP
6 years ago
Adrien Delorme dbb4981d66 WIP
6 years ago
Megan Marsh 6008f911fd
Merge pull request #8847 from takaishi/support-keyboard-interactive
6 years ago
Adrien Delorme 6f2f17c400 WIP
6 years ago
Adrien Delorme 6e6490d688 WIP
6 years ago
Adrien Delorme 260dc59500 use the hcl2template.KVFilter where we can
6 years ago
Adrien Delorme b4efd13a4d aws: use the empty func when possible
6 years ago
r_takaishi f50ff1d270 make generate
6 years ago
Wilken Rivera 7b705545d9
docs: Various doc clean-ups to fix code block formatting and syntax highlighting (#8868)
6 years ago
Megan Marsh 4133acbdf3 update spot price docs
6 years ago
Wilken Rivera e1a46ec293
Fix gosimple S1025 linting errors (#8838)
6 years ago
Megan Marsh dde74232f2
Clearly document all template-engine-enabled options (#8770)
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Adrien Delorme 7d5f0c11af add max_retries option to aws builders
6 years ago
Wilken Rivera a1d9ba0e32
Merge pull request #8699 from fly1028/fix-instance-running-timeout
6 years ago
Patrick Ng e5e5fd1198 Instance Running waiter not aware of global waiter settings
6 years ago
Sylvia Moss 08b0bd1d2c
Fix HCL2 code generation for slices within another slice (#8669)
6 years ago
Megan Marsh d252a24b82 allow user to set winrm_host override like we do ssh_host override
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
nywilken d2a9e6b32e Format code with `gofmt -s -w`
6 years ago
Wilken Rivera 111bab86d9
Merge pull request #8622 from datalot/pre-validate-with-filters
6 years ago
Sylvia Moss 0b7251a4bb
Share .Device and .MountPath between builders, provisioners and post-processors (#8621)
6 years ago
Rich Cavanaugh 4fb0de5256 allow validation to pass when subnet filters are present
6 years ago
Sylvia Moss 39c25b2c66
Add retry mechanism to amazon DeleteSnapshot (#8614)
6 years ago
Sylvia Moss 0677b02e18
Share SourceImageName with provisioners and manifest post-processor (#8603)
6 years ago
Sylvia Moss 0e177915f8
Add retry mechanism to DeregisterImage from awsec2 (#8598)
6 years ago
Adrien Delorme 731904d3d2 mapstructure-to-hcl2: use accessor for named types and not named type + go genrate + tests
6 years ago
Megan Marsh b7ee807cf1
Merge pull request #8571 from hashicorp/fix_8565
6 years ago
Megan Marsh 6655f93b59 fix typo and regenerate code
6 years ago
Megan Marsh 76251e5fd2 fix ssh interface docs for amazon builders
6 years ago
Trevor Pounds 47e48ebc24 Add source AMI owner ID/name to build template.
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables.
6 years ago
Megan Marsh 84063d2132 implement ID and Type values in the provisioner template info sharing
6 years ago
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)
7 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