Commit Graph

557 Commits (7efe3cac3d5e728ee471bbccfd1043e06e4dcafe)

Author SHA1 Message Date
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 1f4b532ed5 Merge pull request #4948 from hashicorp/kms_key_regions
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 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
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 230079f73a
spell fixes
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
Rickard von Essen 2300b102b7 amazon: Step Region Copy crashing on device mapping
9 years ago
James Nugent e856339309 build/amazon-ebssurrogate: Add region copy, attributes, tags steps
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
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 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 a65af51a4b apply source instance default "Name" tag only if it's not provided in run_tags
9 years ago
Roman Zhuzha aa70c82ec8 use ConvertToEC2Tags to apply tags to source instance, add Say message
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
Zanetti, David ae5730c5a5 Querying EC2 security groups should report unexpected errors
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.
9 years ago
Rickard von Essen 5c4d331a34 Added missing LaunchPermission
9 years ago
Rickard von Essen 4ce3b8712a
Replace unencrypted EBS snapshots with encrypted
9 years ago
Rickard von Essen c3a352955e amazon: Added snapshot_users and snapshot_groups
9 years ago
Ari Aviran 46f217f255 amazon - Snapshot permissions correctly applied
9 years ago
Rickard von Essen d7a7d8c852
It's not possible to share encrypted AMI's
9 years ago
poida 8b13b75097 Updated documentation and error messages
9 years ago
poida 7ea17e1630 Allow custom encrypted AMIs to be shared
9 years ago
poida 3eed6fd508 Added KMS CMK support to EBS builder
9 years ago
Rickard von Essen 8d2ceea5f1 builder/amazon: crash on tagging snapshot when snapshot_tags is unset
9 years ago
Rickard von Essen bcc7f455b3 amazon: Fix source_ami_filter ignores owners
9 years ago
Matthew Hooker 832de2104b
Revert "Merge pull request #4230 from mitchellh/revert-4223-closes_3320"
9 years ago
Matthew Hooker f5c3c25d2b Revert "Adds `force_delete_snapshot` flag"
9 years ago
Arthur Burkart 5b59f56cdb Adds `force_delete_snapshot` flag
9 years ago
Rickard von Essen a09f20f996 Merge pull request #4015 from artburkart:closes_3908
9 years ago
Arthur Burkart 0c7e73b1cf
Implements Snapshot tagging
9 years ago
Rickard von Essen 17eda06d61
Fixed formatting
9 years ago
ephemeralsnow e53f4be005 Fix 'The AssociatePublicIpAddress parameter is only supported for VPC launches.'
9 years ago
Rickard von Essen 96e9a8e6e9 Removed default value for ssh_username
9 years ago
Arthur Burkart 2e65867cba Closes #3908: Adds snapshot tag overrides
9 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
Matthew Hooker 60c459d6c8 Merge pull request #4098 from mitchellh/newsession
10 years ago
Matthew Hooker 9bc23ea512 Merge pull request #4099 from mitchellh/waitfail
10 years ago
James Nugent b1ff8c3bfc builder/amazon: Add `ebs-volume` builder
10 years ago
Matthew Hooker d47e47cf1f rewrite to not use private aws package
10 years ago
Matthew Hooker c4c46c349e implement security group waiter
10 years ago
Matthew Hooker 970b37077e Merge pull request #4050 from jen20/ssh-agent
10 years ago
Matthew Hooker 48bdae93d1 aws-sdk: use session.NewSession
10 years ago
Matthew Hooker 83b57b98ac show ami id found from filter
10 years ago
Matthew Hooker d920b3fbf4 run gofmt
10 years ago
Matthew Hooker 0dd7d7ff3b fix error message
10 years ago
Ganesh kumar Sankaran b9c6139d67 AWS async operations sometimes takes long times, if there are multiple parallel builds, polling at 2 second frequency will exceed the request limit. Allow 2 seconds to be overwritten with AWS_POLL_DELAY_SECONDS
10 years ago
Rickard von Essen d66490ebfd
Properly cleanup AWS temporary key pairs
10 years ago
Rickard von Essen d16d5d9686 Merge pull request #3817 from ChrisLundquist/dynamic-source-ami
10 years ago
James Nugent 395d88941c amazon: Allow SSH Agent auth for existing key pair
10 years ago
James Nugent 7425fef2c7 builder/amazon: Allow use of local SSH Agent
10 years ago
Asif R Choudhury 48d94342ba Add us-east-2 (Ohio) AWS region
10 years ago
Rickard von Essen 0be3034e82 Merge pull request #3953 from rickard-von-essen/amz-ssh
10 years ago
Rickard von Essen acc2689b49
builder/amazon: Allow using ssh_private_key_file and ssh_password
10 years ago
Rickard von Essen cffc8e892c Merge pull request #3382 from ahamidi/encrypted-boot-volume
10 years ago
Chris Lundquist 1b4895c684 Merge remote-tracking branch 'origin/master' into dynamic-source-ami
10 years ago
Matthew Hooker a9abe43325 builder/amazon: add retry login when creating tags.
10 years ago
Rickard von Essen 3b47893eb8
builder/amazon: reverted wrongly modified ssh_test's.
10 years ago
Rickard von Essen 067155c344
builder/amazon: guard aginst empty/nil PrivateIpAddress and updated tests.
10 years ago
Rickard von Essen 7f4bee737c Merge pull request #3752 from tarrall/issue3751-ssh-privateip-classic
10 years ago
Rickard von Essen 120b60ae37 Merge pull request #3865 from dpiddy/amazon-ssh-retry-fix
10 years ago
Dan Peterson c7af9a67bc amazon/common/ssh: fix saving of instance to state
10 years ago
Jeremy Asher 85ae04bb75 split up BlockDevices in amazon/common
10 years ago
Chris Lundquist defdd1ecf3 Merge remote-tracking branch 'origin/master' into dynamic-source-ami
10 years ago
Rickard von Essen ba629922c6 Merge pull request #3662 from ryansb/boost-spot-bid
10 years ago
Krzysztof Wilczynski d01fb65dcf Fix. Use temporary_key_pair_name when specified. (#3739)
10 years ago
Chris Lundquist 3cc8d35450 [dynamic-source-ami] fix old key name in error message
10 years ago
Chris Lundquist b4d20706ce [dynamic-source-ami] add some very basic tests
10 years ago
Chris Lundquist 57e7a1a3e6 [dynamic-source-ami] fix lint error
10 years ago
Chris Lundquist 95afaa58ca [dynamic-source-ami] rename to source_ami_filter
10 years ago
Chris Lundquist 0e248f1516 [dynamic-source-ami] make most_recent work
10 years ago
Chris Lundquist ec1abb9448 [dynamic-source-ami] proof of concept
10 years ago
Ali Hamidi c6a527dc46 throw error if encrypted ami is shared
10 years ago
Ali Hamidi 53b3867c50 allow packer to create an encrypted copy of the AMI
10 years ago
Robert Tarrall 94bf981d3b Honor ssh_private_ip flag in EC2-Classic, not just VPC
10 years ago
Chris Bednarski c0b637b0c5 Merge pull request #3733 from envato/no-shutdown-behaviour-instance-backed
10 years ago
Ricard Clau 172a1c7a57 add source ami to output
10 years ago
Chris Bednarski ee5c5260a4 Merge pull request #3663 from liv3d/add_ap-south-1
10 years ago
Chris Bednarski 443ffd68f2 Added explicit error when SG is not working
10 years ago
Dan Offord 4428079a68 Add support for ap-south-1 in AWS
10 years ago
Ryan S. Brown c68ddef4e9 (AWS Spot) Add 0.5 cents to discovered spot price
10 years ago
Mike LoSapio 080806243e Added a hook to query the security groups before launching the instance - seems to catch the AWS eventual consistency nicely
10 years ago
Patrick Robinson 40bd45764c Only set InstanceInititatedShutdownBehavior on ebs instances
10 years ago
Chris Bednarski ab9621ab7d Added aws shutdown_behavior to the changelog
10 years ago
Patrick Robinson f361e1d894 Precompile regex
10 years ago
Patrick Robinson a9f914ea97 Add shutdown_behaviour option
10 years ago
owjjh 658fadbc53 changing if conditionals to be ! instead of == false
10 years ago
owjjh d489ce9904 make fmt run
10 years ago
owjjh de5b69a8df Adding ability to skip region validation when using AWS
10 years ago
Chris Chalfant 8163e16e02 gofmt code
10 years ago
Chris Chalfant 72a7123a0b Add option to tell packer not to stop the instance
10 years ago
Chris Bednarski d0ab8658bc Create a session for EC2RoleProvider; prevents crash; fixes #3123
10 years ago
Chris Bednarski 4458de4ea0 Reformat
10 years ago
Chris Bednarski 765ec5cf39 Merge pull request #2962 from dave2/postprocess_amazon_ova
10 years ago
Chris Bednarski 358b5c62e2 Merge pull request #3143 from ThatGerber/iam-roles
10 years ago
Christopher Gerber e7711c31ea Wrong function to convert int to string.
10 years ago
Christopher Gerber b75d561c56 Fixes more windows testing errors.
10 years ago
Christopher Gerber d25ba245f4 Fixes bytes to string issues in Windows build.
10 years ago
Christopher Gerber a6aefa859f Fixes issue in build where multiple processes were trying to access the same file.
10 years ago
Christopher Gerber 6c3e0daf24 Added tests. Updated CLIConfig to pass tests.
10 years ago
Chris Bednarski e6b6f0b020 Merge pull request #2539 from fnoeding/amazon-ebs-fix-ec-user-data-encoding
10 years ago
Christopher Gerber f1ae2a2b5a Moved assume credentials to CLIConfig. Added new functions and methods to CLIConfig. Ran gofmt.
10 years ago
Christopher Gerber 4cf9e36085 Changes credential/config file opener to use homedir instead of HOME environmental variable.
10 years ago
Christopher Gerber 7975c5e336 Move CLIConfig instantiation inside of ProfileName check.
10 years ago
Christopher Gerber 883acb18fa IAM Role Switching
10 years ago
Chris Bednarski 0cad32c696 Move region list into a function so we can re-use it in tests
10 years ago
Chulki Lee 20c0f6b02b fix doc: wrong function name
10 years ago
Chulki Lee 1aa24035fc add ap-northeast-2: Asia Pacific (Seoul)
10 years ago
Chulki Lee 7018517374 one region per line, sorted
10 years ago
Chulki Lee 3f0795b23c sort regions by name
10 years ago
Chulki Lee 7f3f5f4bfa add tests for all ami regions
10 years ago
David Zanetti 418da16991 Track the import task and report AMIs created from it
10 years ago
Luke Amdor 8682dec178 aws: build after upstream breaking change
11 years ago
Mark Peek eb15536041 Merge pull request #2774 from btd/btd-patch-1
11 years ago
Mark Peek 4e1e9b788a Merge pull request #2845 from abridgett/feature/spot_price_zero
11 years ago
Denis Bardadym 25e2ff7b85 Fix not allowed comma, add all allowed special characters
11 years ago
Mark Peek 6f5c64db41 Merge branch 'use-default-volumesize'
11 years ago
Mark Peek fc39f07ecc Add EbsOptimized to RequestSpotInstances (#2806)
11 years ago
Mark Peek edda3de677 Merge pull request #2806 from abridgett/feature/add_ebs_optimized_support
11 years ago
Mark Peek f6c7e3740f Don't create EBS block device if VirtualName is specified
11 years ago
Mark Peek 914e78f602 builder/amazon/common: go fmt
11 years ago
Mark Peek 581c3574f6 Merge pull request #2672 from lightpriest/b-aws-ebs-block-device
11 years ago
Mark Peek 45829c30e5 builder/amazon/*: fix go vet
11 years ago
Adrian Bridgett da771c469e spot_price of "0" to mean on demand
11 years ago
Adrian Bridgett 8349e22df9 Add ebs_optimized support
11 years ago
Or Cohen 2a94b596ce Fix and refactor block device mapping builder
11 years ago
Chris Bednarski 1a775c05d9 Update calls to amazon to match the upstream
11 years ago
Chris Bednarski 4cc443da8e Update use of ec2rolecreds to match upstream
11 years ago
Chris Bednarski abb67fdd79 Fix govet issues
11 years ago
Florian Noeding 62c39888b4 amazon builder: always base64 encode ec2 user data
11 years ago
Florian Noeding 98b9d22b68 amazon builder: only fetch password for winrm
11 years ago
Chris Bednarski a9c299d9c4 Merge pull request #2404 from mitchellh/b-instance-destroy
11 years ago
Chris Bednarski 28bf1877c2 Updated AWS SDK calls to match the 0.7.0 release of the AWS SDK
11 years ago
Yo Takezawa 628462b919 Use snapshot size if you don't specify a VolumeSize
11 years ago
Tommy Ulfsparre 241903d0b0 no point in setting iops on a standard volumes
11 years ago
Chris Bednarski c615539929 Reformat long lines
11 years ago
Chris Bednarski 9365a43179 Reformat
11 years ago
Tommy Ulfsparre ae064207d5 Add test for ephemeral block device mapping
11 years ago
Anthony Spring 224bb78175 Make EBS block device mapping optional for ephemeral virtual names.
11 years ago
Mitchell Hashimoto 26aa3dd575 amazon/common: store instance ID earlier for cleanup
11 years ago
Steven Merrill 0869c9fe64 Fix #2830.
11 years ago
Mitchell Hashimoto 0a2e54feaf builder/amazon: output WinRM password for debug mode [GH-2336]
11 years ago
Mitchell Hashimoto 95dd79740f Merge pull request #2324 from tcahill/group-launch-permissions
11 years ago
Mitchell Hashimoto 7b64723a11 Merge pull request #2327 from emate/fix-for-spot-requests-cleanup
11 years ago
Mitchell Hashimoto aab5ca7059 update CHANGELOG
11 years ago
Marcin Matlaszek 3eaf7f38b0 Fix adding launch permissions for created ami.
11 years ago
Tom Cahill 6644d76982 Use aws.String to obtain string pointers
11 years ago
Tom Cahill 016d916d83 Fix adding groups to AMI launch permissions.
11 years ago
Marcin Matlaszek 586cab11ee Fixes spot instance cleanup.
11 years ago
Tommy Ulfsparre 8ae0cfc759 copy and convert to pointer
11 years ago
Clint 7b9d48799e Merge pull request #2316 from jjappi/fix-aws-tagging
11 years ago
Marcin Matlaszek dd97a60c9b Fix for tag creation when creating new ec2 instance.
11 years ago
Jani Jappinen c537623bc6 Fix failing AMI snapshot tagging when copying to other regions.
11 years ago
Clint Shryock 7af5d5419a builder/amazon: Fix issue with sharing AMIs with ami_users
11 years ago