Commit Graph

996 Commits (e2fe35ef40bbce9b87f945901afa00a3fa769093)

Author SHA1 Message Date
Sargun Dhillon 142a84ef43 amazon/chroot: Refactor step_register_ami for testing EBS-related behaviour
7 years ago
Sargun Dhillon d3c65ee77d builder/amazon/chroot: Fix building PV images with mount_partition
7 years ago
Megan Marsh 2a613dd6e9 fix up the github suggestion
7 years ago
Adrien Delorme 3ae5a912d4
Update builder/amazon/common/step_pre_validate.go
7 years ago
Megan Marsh 3704a053d0 move region validation and credential wait into step pre validate
7 years ago
Megan Marsh 8add176ab7 finish first pass at vault code; needs testing and cleanup of error messages
7 years ago
Megan Marsh 7a78b47e83 make vault engine stuff into a little struct for easier management
7 years ago
Megan Marsh 035c3506ba manually set proxyfromenvironment in default http client for ec2 sessions
7 years ago
Adrien Delorme 4a2773f8fa remove default max retries config of 8, it will now be used from env
7 years ago
Adrien Delorme 964b149df2 aws: remove now unused AccessConfig.metadataRegion
7 years ago
Adrien Delorme 335f442b51 aws: unwrap AccessConfig.region func
7 years ago
Adrien Delorme 54af9951a8 make guard clauses to clearly see success pass
7 years ago
Adrien Delorme 0864b4d07b name unclear import
7 years ago
Megan Marsh e0543246fa remove commented code
7 years ago
Megan Marsh 783ed32e7e fix region stuff
7 years ago
Adrien Delorme 9f7b4ffc17
Merge branch 'master' into pr/6950
7 years ago
Megan Marsh ee2e5cc874
Merge pull request #7080 from hashicorp/do_6508
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Tom Elliff 12bf7fc4d6 Check that the KMS key ID is valid
7 years ago
Megan Marsh 042e9ad14b Move logging about aws waiters to the access config prepare() so that it's only spit out once per builder.
7 years ago
Megan Marsh c03894c05d fix bad interpolation exemption for volume_size
7 years ago
Megan Marsh da6e350949 fix tests
8 years ago
Megan Marsh fbb3d526e3 move region validation to run so that we don't break validation when we don't have aws creds set
8 years ago
Mikhail Ushanov 536252683e builders: reuse private key file reading function
8 years ago
Megan Marsh 79862f1bbb
Merge pull request #6931 from hashicorp/fix_6919
8 years ago
Adrien Delorme 3f288fc6ca aws client: config.WithMaxRetries(8)
8 years ago
Mikhail Ushanov 4608b5d39d amazon: add option for skipping TLS verification
8 years ago
Adrien Delorme f4fbf45349 remove duplicate region check error
8 years ago
Adrien Delorme 16aa21dffe aws: better error handling of region guessing from metadata
8 years ago
Adrien Delorme ed793a8fb8 make ValidateRegion a member of *AccessConfig and make it variadic
8 years ago
Megan Marsh fe044d8ff7 fix tests
8 years ago
Megan Marsh 340009009d Revert "Revert "Merge pull request #6892 from hashicorp/fix_6890""
8 years ago
Megan Marsh 0cd3f36d50 Revert "Merge pull request #6892 from hashicorp/fix_6890"
8 years ago
Megan Marsh 0924a316b7 fix template-set credentials
8 years ago
Megan Marsh 9573013d3a
Merge pull request #6872 from aspectcapital/disable-ena-support
8 years ago
Matt Dainty feb8067c7d Convert `ena_support` to a pointer
8 years ago
Megan Marsh 57f87f58b9
Merge pull request #6374 from rickard-von-essen/aws-filters
8 years ago
Megan Marsh 2266514408
Merge pull request #6843 from gmmephisto/pr-master-aws-security-group
8 years ago
Megan Marsh e7d3a30c0e
Merge pull request #6865 from hashicorp/fix_6862
8 years ago
Mikhail Ushanov 00c96fc400 aws: use IpPermissions for authorizing temporary security group
8 years ago
Mikhail Ushanov b316be51cd aws: wait for temporary security group before authorizing
8 years ago
Megan Marsh b0cfecf314 remove unnecessary valid flag
8 years ago
Matt Dainty 9e0fae9db3 Add support to explicitly disable ENA support
8 years ago
Megan Marsh d4767845f0 fix tests
8 years ago
Megan Marsh 7c3f0aa3b2 make sure region validation catches authentication errors
8 years ago
Mikhail Ushanov ee133482b4 aws: add validation for device_name parameter
8 years ago
Megan Marsh 02bfac118f default wait time for amazon import to one hour.
8 years ago
Megan Marsh f494d87dc5
Merge pull request #6747 from hashicorp/fix_6743
8 years ago
Adrien Delorme f44dfcc62f
Merge pull request #6727 from hashicorp/fix_6723
8 years ago
Adrien Delorme 22d3e9b5c4 builder/amazon/ebs: pass config as a pointer so values could be populated by a run
8 years ago
Matthew Hooker 9181570bc3
remove stray struct dumps in logs
8 years ago
Megan Marsh d616f0ba71 abort if image import fails
8 years ago
Megan Marsh 79093da6ad skip region validation in tests that don't care; refactor Prepare func so we can test region validation logic with a mock
8 years ago
Megan Marsh 93f1155a14 remove test-related special casing
8 years ago
Anshul Sharma ef3c10c403 Modify Validate Region for test cases
8 years ago
Anshul Sharma 98f13eaf29 Use DescribeRegions for aws region validation
8 years ago
Megan Marsh f4e6d06e68 reset poll delay seconds default to 2 because it can actuall be used in one part of the conditional tree for applyEnvOverrides
8 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Adrien Delorme 770f61e682 spot instance creation, only set blockDurationMinutes when > 0
8 years ago
Adrien Delorme 2e73ed8d46 pass Comm instance to fix Spot instance creation
8 years ago
Matt DeBoer 09797df958 use a UI wrapper to auto-decode error messages
8 years ago
Megan Marsh a0edaf6c46 Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
8 years ago
Adrien Delorme e02d0dacc4
Merge branch 'master' into aws-filters
8 years ago
Sargun Dhillon 63d784023f Add support to support non-gp2 volume types for building from_scratch
8 years ago
Sargun Dhillon 07ce820c70 Enable setting the volume type when building with the Amazon Chroot builder
8 years ago
Megan Marsh b94e6e913e
Merge pull request #6670 from sargun/fix-ena-on-pv
8 years ago
Adrien Delorme b80e1d51c6 aws: when building an AMI with 'encrypt_boot: true', randomize the name of the temporary AMI
8 years ago
Sargun Dhillon 902497d6ce Allow users to build hvm images from pv images to have ena_support
8 years ago
Megan Marsh 349f9ae62b
Merge pull request #6641 from hashicorp/increase_retries
8 years ago
Adrien Delorme 2a2734505b
Merge pull request #6649 from hashicorp/fix_6569
8 years ago
RenaudS 26aab49aaf aws spot instances: add block_duration_minutes option (#6638)
8 years ago
Megan Marsh 4472ecccb0 fix waiters that weren't applying env defaults
8 years ago
Megan Marsh 9926988ab7
Merge pull request #6621 from hashicorp/ssh_keys_centralised
8 years ago
Megan Marsh 2b9f937c23 increase max retries from 3 to 20
8 years ago
Adrien Delorme df9e756865 pass the Comm instance to the amazon ebs builders steps
8 years ago
Adrien Delorme b0c09087a2 move SSHInterface/SSHIPVersion fields to communitator.Config struct
8 years ago
Adrien Delorme 0938b640cc use key pair name from config
8 years ago
Adrien Delorme ef4ca9c48e builder.amazon: use c.Comm for ssh
8 years ago
Adrien Delorme 9a9b82715b config.Comm.SSHKeyPair => SSHKeyPairName
8 years ago
Adrien Delorme 3a4bb26150 builder.aws: use key pair from comm struct
8 years ago
Adrien Delorme 293c485372 builder.aws: use SSHAgentAuth from Comm
8 years ago
Adrien Delorme ef08c441c9 builder.aws: use Comm field for StepKeyPair & StepGetPassword
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Megan Marsh e4f6b6f720 fix chroot communicator to properly escape quotes
8 years ago
Matthew Hooker e41e99954d
go 1.11 format rules
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Rickard von Essen 23f62f221e Only filter SG's on VPC if it's set. Only use VPC's and Subnets that are available
8 years ago
Megan Marsh fa99f931b7
Merge pull request #6601 from hashicorp/fix_6536
8 years ago
Adrien Delorme 6bbcd3e914
Remove remaining unused ssh config funcs and add missing calls (#6622)
8 years ago
Rickard von Essen 533967cb66 builder/amazon: Add suppport for security_group_filter
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Rickard von Essen 9840862757 builder/amazon: Add suppport for vpc_filter and subnet_filter
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Matthew Hooker 31fcfe4bc2 PoC for filtering logs
8 years ago
Megan Marsh 00c6ec979f do 30 minutes not 25
8 years ago
Megan Marsh 00de0f4996 increase the timeout for waiting for an ami to become available
8 years ago
Megan Marsh 71cad4f2a9 fix tests
8 years ago
Megan Marsh 250da0ab49 fix security hole with ami filter
8 years ago
Anshul Sharma c1edcd3774
amazon-ebssurrogate clean up volumes
8 years ago