Commit Graph

79 Commits

Author SHA1 Message Date
Mark Peek 839045264e Move AWS auth decisions to goamz [GH-160]
Currently the passed in AWS auth or AWS environment variables are
interpreted by packer. This change moves that logic into goamz in
order to support both the existing and instance based IAM role
authentication. This requires a corresponding change to goamz.
2013-07-14 12:29:43 +09:00
Mitchell Hashimoto a354f5fc08 Unused keys are invalid in templates [GH-104] 2013-07-14 09:28:56 +09:00
Mitchell Hashimoto edb9534773 Merge pull request #162 from brendanhay/persistent-security-group
builder/amazonebs: Ability to specify a pre-existing SecurityGroupId for the AmazonEBS Builder
2013-07-12 01:19:25 -07:00
Mitchell Hashimoto c88f75b234 Update CHANGELOG 2013-07-12 07:01:23 +09:00
Mitchell Hashimoto 1218c11776 Merge pull request #172 from MattSurabian/feature/ebs-builder-bug
builder/amazonebs: Validate that instance exists and is EBS based before trying to launch it
2013-07-11 14:59:02 -07:00
Matt Surabian f9decb7aca Validate that instance exists and is EBS based before trying to launch it. 2013-07-11 17:41:17 -04:00
Mark Peek 7f5baf9ca4 Add AWS instance id to normal output
The AWS instance id is only output when logging is occurring. If an
error happens it is useful to know the AWS instance id of the instance
spun up by packer in case further cleanup or forensics are needed.
2013-07-11 20:27:44 +00:00
Brendan Hay fdc126afa7 Adding the ability to specify a security_group_id for the amazonebs builder 2013-07-10 09:32:50 +02:00
Mitchell Hashimoto 65d74f90c1 builder/amazonebs: retry SSH handshakes [GH-130] 2013-07-07 20:37:43 -07:00
Mitchell Hashimoto 9ca3d05241 builder/amazonebs: tests for env vars 2013-07-01 15:22:35 -07:00
Mitchell Hashimoto 2a7a7173f1 Merge pull request #40 from justincampbell/amazon-env-vars
builder/amazonebs: Default to AWS env vars for key and secret
2013-07-01 15:11:19 -07:00
Justin Campbell 4b2b23c32f Add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY 2013-06-29 09:32:07 -04:00
Jack Pearkes c3363e48ed builder/amazonebs: sleep between checks for ami create
fixes #50
2013-06-29 12:35:48 +02:00
Justin Campbell 9c9c60aabf Default to AWS_ env vars for key and secret 2013-06-28 13:45:15 -04:00
Krzysztof Wilczynski 8201b7f6e1 Fix a typo.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2013-06-28 17:33:42 +01:00
Mitchell Hashimoto 6d87e6aa76 builder/amazonebs: Wait for instance to terminate during cleanup 2013-06-27 21:42:07 -04:00
Mitchell Hashimoto 2e0a051539 builder/*: Fail if provisioning fails [GH-33] 2013-06-26 17:54:57 -07:00
Mitchell Hashimoto 227ab55617 builder/amazonebs: Artifact ID works 2013-06-26 17:40:21 -07:00
Mitchell Hashimoto c490911eb6 builder/amazonebs: Get rid of TODO since we can specify source states 2013-06-19 20:57:56 -07:00
Mitchell Hashimoto cac0f49bb8 builder/amazonebs: Return proper errors 2013-06-19 20:54:02 -07:00
Mitchell Hashimoto 72f5d84cb7 fmt 2013-06-18 21:54:33 -07:00
Mitchell Hashimoto 0edeb49467 builder/amazonebs: If only one error on destroy, just return it 2013-06-18 16:25:35 -07:00
Mitchell Hashimoto 4f229dea09 builder/amazonebs: Implement Artifact.Destroy 2013-06-18 16:24:35 -07:00
Mitchell Hashimoto 0f354c79d1 packer: Add Destroy method to artifact
[GH-18]
2013-06-18 16:01:14 -07:00
Mitchell Hashimoto e1c0616a14 builder/amazonebs: Tests for invalid AMI name 2013-06-17 15:24:33 -07:00
Jack Pearkes e0a4e72be5 builder/amazonebs: check for err parsing template for ami name 2013-06-17 23:55:08 +02:00
Mitchell Hashimoto d0dc0a769e fmt 2013-06-15 11:07:30 -07:00
Mitchell Hashimoto f754c171e8 builder/*: Add support for debug 2013-06-15 10:51:09 -07:00
Mitchell Hashimoto a6194467ac builder/*: Adhere to the new interface 2013-06-14 12:29:48 -07:00
Mitchell Hashimoto 521b59a6fa Make everything support the new builder interface 2013-06-12 16:06:56 -07:00
Mitchell Hashimoto dc641324de builder/amazonebs: Create temporary security group as well 2013-06-11 14:37:10 -07:00
Mitchell Hashimoto 3b3efab805 builder/amazonebs: Tell the user if the termination failed 2013-06-11 14:15:43 -07:00
Mitchell Hashimoto ccc95e7e5c builder/amazonebs: Slight slepe between connection attempts to SSH 2013-06-11 14:13:33 -07:00
Mitchell Hashimoto 352f875dbf builder/amazonebs: Handle interrupts while waiting for SSH 2013-06-11 14:10:57 -07:00
Mitchell Hashimoto 417f7e7f47 fmt 2013-06-11 14:09:31 -07:00
Mitchell Hashimoto de9c4ace9e builder/amazonebs: Timeouts while waiting for SSH to connect 2013-06-11 14:09:16 -07:00
Mitchell Hashimoto 62309cb6de Build/Builder take a Cache object now 2013-06-09 22:00:47 -07:00
Mitchell Hashimoto c29d754fa8 builder/vmware: break out the proper loop 2013-06-08 19:26:07 -07:00
Mitchell Hashimoto be1e60aa26 builder/amazonebs: Validate region exists 2013-06-08 17:54:18 -07:00
Mitchell Hashimoto 4fa27e6a30 builder/amazonebs: Finish basic validation 2013-06-08 17:49:03 -07:00
Mitchell Hashimoto 4223e5bcca builder/amazonebs: Additional validation 2013-06-08 17:46:34 -07:00
Mitchell Hashimoto 6a23cb726c builder/amazonebs: Config validation, testing 2013-06-08 17:41:56 -07:00
Mitchell Hashimoto ec22477185 builder/amazonebs: Use unix timestamps 2013-06-04 13:12:04 -07:00
Mitchell Hashimoto a436b91330 builder/amazonebs: interpolate create time into AMI name 2013-06-04 12:52:52 -07:00
Mitchell Hashimoto 04a4d91431 builder/amazonebs: Better checking for states 2013-06-04 11:29:59 -07:00
Mitchell Hashimoto a099e32df2 builder/amazonebs: Handle case where no AMIs 2013-06-04 11:26:08 -07:00
Mitchell Hashimoto f67fdecab6 builder/amazonebs: If cancelled, don't return artifact 2013-06-04 10:59:12 -07:00
Mitchell Hashimoto 5aa78cb4aa builder/amazonebs: Properly implement cancel 2013-06-04 10:53:35 -07:00
Mitchell Hashimoto 0df18df40f builder/amazonebs: extract multistep, use that 2013-06-04 10:00:06 -07:00
Mitchell Hashimoto 079d6f4d43 packer: Introduce Cancel() method to Builder 2013-06-03 14:44:34 -07:00