Matthew Hooker
ae455bff99
add debugging help if ec2-upload-bundle fails
2017-10-05 17:33:07 -07:00
Mark Meyer
2661fd7869
Move building of spot instances into its own step
2017-10-04 12:38:21 +02:00
Zanetti, David
8a8b51be97
Allow temporary security group to have source CIDR block explicitly provided
2017-09-26 00:57:56 +00:00
Matthew Hooker
02cd6bc7f0
Merge pull request #5288 from hashicorp/fix3114
...
add token variable to upload bundle command template
2017-09-25 18:36:28 -05:00
Matthew Hooker
4bc8e7de3d
add token variable to upload bundle command template
2017-09-25 16:35:53 -07:00
Megan Marsh
2d4bc70d7b
use ami prefix to make it clear that these variables are amazon specific
...
add fixer, fixer tests
2017-08-28 11:21:27 -07:00
Megan Marsh
9e2e467b31
Allow granular modification of sriov and ena enhanced networking options in amazon amis. Maintain old functionality.
2017-08-25 14:49:53 -07:00
Megan Marsh
14b2d04332
make force_deregister work in all regions, not just original region.
2017-08-14 12:31:58 -07:00
Matthew Hooker
56c513088b
I think this was the intention
2017-06-09 10:34:49 -07:00
Megan Marsh
b8c2a5fd43
fix step initializer everywhere StepAMIRegionCopy is called
2017-06-01 09:28:17 -07:00
Paul Thrasher
0be5a28080
Fix issue 4693 - Derive vpc_id from subnet_id
...
In AWS we can derive the `VpcId` and AZ from the `SubnetId`, so now we do. In the config you can now only specify the `SubnetId`.
This fixes issue #4693 .
2017-05-15 13:46:05 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
50d9546658
builder/amazon: set force_deregister to true on -force
2017-03-09 14:24:49 -08:00
Aaron Stone
1cc3cdf7b5
Always set both SRIOV and ENA when Enhanced Networking is enabled
...
Set SriovNetSupport to "simple". As of February 2017, this applies to C3, C4,
D2, I2, R3, and M4 (excluding m4.16xlarge).
Set EnaSupport to true. As of February 2017, this applies to C5, I3, P2, R4,
X1, and m4.16xlarge.
2017-02-25 07:16:35 -08:00
Rickard von Essen
ba9cae5078
builder/amazon: Add SourceAMI and BuildRegion template
...
Added {{ .SourceAMI }} and {{ .BuildRegion }} template values availible
in `ami_description`, `run_tags`, `run_volume_tags`, `tags`, and
`snapshot_tags`.
2017-01-21 20:39:58 +01:00
Rickard von Essen
26fe9cf339
builder/amazon: Fix crash in amazon-instance
...
Closes #4360
2017-01-06 15:17:02 +01:00
Rickard von Essen
c3a352955e
amazon: Added snapshot_users and snapshot_groups
2016-12-04 16:03:01 +01:00
Matthew Hooker
832de2104b
Revert "Merge pull request #4230 from mitchellh/revert-4223-closes_3320"
...
This reverts commit bda89b0c42
, reversing
changes made to f9f9d82419
.
2016-11-30 13:28:34 -08:00
Matthew Hooker
f5c3c25d2b
Revert "Adds `force_delete_snapshot` flag"
2016-11-30 13:10:22 -08:00
Matthew Hooker
f9f9d82419
Merge pull request #4223 from artburkart/closes_3320
...
Adds `force_delete_snapshot` flag
2016-11-30 12:53:34 -08:00
Arthur Burkart
5b59f56cdb
Adds `force_delete_snapshot` flag
...
This PR adds the ability for Packer to clean up snapshots in addition to
deregistering AMIs at build time.
To test this, I used the following `test.json` file:
```json
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami": "ami-fce3c696",
"ami_name": "packer-test",
"instance_type": "m3.medium",
"ssh_username": "ubuntu",
"vpc_id": "some-vpc-id",
"subnet_id": "some-subnet-routed-through-igw",
"security_group_id": "some-security-group-with-port-22-access",
"force_delete_snapshot": true
}
],
"provisioners": [
{
"type": "shell-local",
"command": "echo 'hello'"
}
]
}
```
I appreciate any constructive feedbakc that can be given. Cheers!
2016-11-29 23:39:36 -05:00
Rickard von Essen
99ee610afa
builder/amazon: Fix SSH Agent
...
Closes #4220
2016-11-29 22:33:53 +01:00
Arthur Burkart
2e65867cba
Closes #3908 : Adds snapshot tag overrides
...
This commit adds the ability to configure unique tags on snapshots
that are separate from the tags defined on the AMI. Anything applied
to the AMI will also be applied to the snapshots, but `snapshot_tags`
will override and append tags to the tags already applied to the snapshots
2016-11-15 23:16:27 -05:00
Matthew Hooker
60c459d6c8
Merge pull request #4098 from mitchellh/newsession
...
aws-sdk: use session.NewSession
2016-11-02 12:25:14 -07:00
Matthew Hooker
970b37077e
Merge pull request #4050 from jen20/ssh-agent
...
builder/amazon: Allow use of local SSH Agent
2016-11-01 17:27:37 -07:00
Matthew Hooker
48bdae93d1
aws-sdk: use session.NewSession
2016-11-01 15:53:04 -07:00
Rickard von Essen
d16d5d9686
Merge pull request #3817 from ChrisLundquist/dynamic-source-ami
...
Dynamic source ami
2016-10-25 21:24:41 +02:00
James Nugent
7425fef2c7
builder/amazon: Allow use of local SSH Agent
...
This commit adds an option to use the local SSH Agent to authenticate
connections to source instances started by the the EBS and Instance
Store builders.
This is of use when the source AMI _already_ has configuration for
authorized SSH keys - for example if one uses an SSH certificate
authority.
A further extension (not implemented in this commit) is to allow SSH
agent use with a pre-defined key pair, in order to allow keys with
passphrases to be used without giving the passphrase to Packer.
2016-10-23 21:43:47 -05:00
Rickard von Essen
acc2689b49
builder/amazon: Allow using ssh_private_key_file and ssh_password
...
This adds support for using amazon-ebs/amazon-instance builder without
a keypair. If a ssh_private_key_file is supplied without a
ssh_keypair_name no temporary ssh keypair is created. If ssh_password is
used no temporary ssh keypair is created and the password is used when
trying to connect.
Closes #2301
Closes #3156
2016-10-02 22:20:36 +02:00
Chris Lundquist
9379cbc5d9
[dynamic-source-ami] support instance builder too
2016-10-01 23:01:01 +00:00
Orivej Desh
6762965696
Add -on-error command line argument to allow preserving artifacts on builder errors
...
Resolves #409
2016-09-16 12:15:00 +00:00
Patrick Robinson
40bd45764c
Only set InstanceInititatedShutdownBehavior on ebs instances
2016-06-27 10:28:54 +10:00
Patrick Robinson
a9f914ea97
Add shutdown_behaviour option
...
This means an instance will terminate upon shutdown.
2016-06-14 14:29:10 -07:00
Chris Bednarski
951a7e8ad3
Merge pull request #2596 from manicai/master
...
Fix for #2496 AWS credentials for instance based AMIs
2016-02-03 12:45:51 -08:00
Colin Hebert
48d242a8f8
Use pointers in the AWS API
2016-01-06 08:12:20 +01:00
Colin Hebert
9385a277c6
Fix API calls and remove az detection in chroot
2016-01-06 08:02:29 +01:00
Colin Hebert
e4930e7b57
Merge branch 'master' into subnet_az_discovery
2016-01-06 07:43:03 +01:00
Luke Amdor
8682dec178
aws: build after upstream breaking change
...
see 1a69d06935
2015-10-30 13:58:56 -05:00
Mark Peek
a9716a4dc7
Merge pull request #2797 from jen20/improve-aws-instance-builder-error
...
Add suggestion to AWS Instance builder error message
2015-10-18 12:14:03 -07:00
Adrian Bridgett
8349e22df9
Add ebs_optimized support
2015-10-06 21:36:21 +01:00
James Nugent
b60e1fd862
Add suggestion to AWS Instance builder error message
...
A common cause of the failure of the bundle volume step is missing the
ec2-bundle-vol command on the target instance. This commit adds a note
about this to the error message produced as Packer output if the
bundling step fails (it is already in the documentation).
2015-10-02 17:06:33 -04:00
Chris Bednarski
1a775c05d9
Update calls to amazon to match the upstream
...
- see http://aws.amazon.com/releasenotes/2948141298714307
- run awsmigrate-renamer on each amazon module (chroot, instance, etc.)
2015-08-17 17:44:01 -07:00
Ian Glover
1447af5e42
Populate access and secret key for bundle_upload_command.
2015-08-13 14:58:15 +01:00
Chris Bednarski
28bf1877c2
Updated AWS SDK calls to match the 0.7.0 release of the AWS SDK
2015-07-28 17:10:21 -07:00
Mitchell Hashimoto
6dd36075b2
Merge pull request #2352 from mitchellh/b-amazon-bundle
...
builder/amazon/instance: set valid bundle prefix [GH-2328]
2015-06-29 13:59:45 -07:00
Mitchell Hashimoto
98db68e36c
builder/amazon/instance: set valid bundle prefix [GH-2328]
2015-06-29 09:49:11 -07:00
Mitchell Hashimoto
b315e470c8
builder/amazon: set debug flag for get password
2015-06-29 09:40:58 -07:00
Clint Shryock
4d003aa5a3
builder/amazon-instance: Don't specify empty Virtualization Type
2015-06-26 10:43:13 -05:00
Mitchell Hashimoto
84189f7a28
builder/*: properly save interpolation context
2015-06-22 09:22:42 -07:00
Mitchell Hashimoto
5c290fdbc7
builder/amazon use proper key pair name
2015-06-19 06:15:16 +02:00
Mitchell Hashimoto
de2004c1c9
Merge branch 'master' of https://github.com/nyetsche/packer into nyetsche-master
2015-06-15 15:21:58 -07:00
Clint
8fca582278
Merge pull request #2221 from mitchellh/f-amazon-force-deregister-artifacts
...
builder/amazon: Add force_deregister option
2015-06-15 10:02:30 -05:00
Mitchell Hashimoto
101e5986dc
builder/amazon: enable windows for instance type too
2015-06-14 10:50:18 -07:00
Mitchell Hashimoto
8f6ecfd9e3
builder/amazon: various fixes (minor) to get things going
2015-06-13 23:12:59 -07:00
Mitchell Hashimoto
115d583cff
helper/communicator: make host more generic
2015-06-13 19:23:33 -04:00
Mitchell Hashimoto
e557928119
builder/amazon: use helper/communicator
2015-06-13 18:16:12 -04:00
Clint Shryock
bec59b535d
builder/amazon: Add force_deregister option, to automatically deregister artifacts with name conflicts
2015-06-12 13:23:47 -05:00
Clint Shryock
c9b413e3d1
builder/amazon-instance: Omit access, secrety key if using IAM Instance Profile
2015-06-10 15:18:05 -05:00
Clint Shryock
8c321138f4
Revert "Changing --region to --location"
...
This reverts commit f40fd36c31
.
According to the documentation below, `--region` is the current flag. If you're
using an older version of the tools that use `--location`, you can customize the
commands in your Packer config with `bundle_vol_command` and `bundle_upload_command`
- http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-upload-bundle.html
- https://www.packer.io/docs/builders/amazon-instance.html
2015-06-09 10:41:39 -05:00
Henry Huang
052b5e6699
"Name" parameter required for copying ami across regions [GH-2172]
2015-06-05 11:15:48 +00:00
Seth Vargo
33ca8b7fb5
Migrate to new AWS repo
2015-06-03 17:13:52 -04:00
Mitchell Hashimoto
8cac7e8d51
Merge pull request #1930 from bhourigan/issue1929
...
Prepending -i to sudo so PATH is inherited from profile.d scripts
2015-05-28 09:36:58 -07:00
Mitchell Hashimoto
b78b119a11
amazon/*: fix merge issues with lib switch
2015-05-28 08:31:22 -07:00
Mitchell Hashimoto
44b980e659
Merge branch 'aws-sdk-go' of https://github.com/jen20/packer into jen20-aws-sdk-go
2015-05-28 08:24:41 -07:00
Mitchell Hashimoto
034e4e676c
amazon/*: use new interpolation functions
2015-05-27 11:47:45 -07:00
James Nugent
e99cd56b6c
Migrate from mitchellh/goamz to awslabs/aws-sdk-go
...
This commit moves the Amazon builders of Packer away from the Hashicorp
fork of the goamz library to the official AWS SDK for Go, in order that
third party plugins may depend on the more complete official library
more easily.
2015-04-12 21:33:09 -04:00
Brian Hourigan
a4cfd921f4
Adding missing hyphen to sudo options
2015-04-04 10:52:17 -04:00
Colin Hebert
a08725f7c5
Add auto discovery of AZ based on the subnet
2015-03-01 00:00:45 +11:00
Brian Hourigan
f40fd36c31
Changing --region to --location
2015-02-19 14:40:36 -05:00
Brian Hourigan
8e69403735
Prepending -i to sudo so PATH is inherited from profile.d scripts related to ec2 tooling
2015-02-19 14:32:27 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
43f08b2664
go fmt all the things
2015-01-13 22:58:41 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
9d097f9d4e
Permit Temp keys and named SSH keypairs
...
These changes permit the use of pre-created SSH keypairs with AWS. If
so, the configuration for the builder needs to include an
ssh_keypair_name option and a ssh_private_key_file.
If ssh_private_key_file is *not* defined, it'll go through the
rigamarole of creating a temporary keypair. The ssh_keypair_name option
by itself won't make that change, because it doesn't make sense to
specify a keypair but not tell packer where the private key is, but it
does happen that you could have a private key and the public-key is
"baked in", and not part of your EC2 account.
2015-01-13 16:27:33 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
8c87b1cc00
First attempt for re-using a named EC2 keypair
...
Adds a 'ssh_keypair_name' option to the configuration
for AWS, along with some munging to create the
temporarily keypair if one isn't specific.
NOT YET WORKING.
From a 'make' I get the following errors:
builder/amazon/ebs/builder.go:94: b.config.SSHKeyPairName undefined
(type config has no field or method SSHKeyPairName)
builder/amazon/instance/builder.go:199: b.config.SSHKeyPairName
undefined (type Config has no field or method SSHKeyPairName)
2015-01-13 13:12:04 -05:00
Mitchell Hashimoto
75395af12d
Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
...
Conflicts:
builder/parallels/common/step_upload_parallels_tools.go
builder/vmware/common/step_upload_tools.go
provisioner/chef-client/provisioner.go
provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
Mitchell Hashimoto
db90c16118
builder/amazon: support auto spot price discovery [GH-1465]
2014-09-06 10:44:12 -07:00
Mitchell Hashimoto
3a69b8c1b8
Merge branch 'add-spot-instance-support' of github.com:henrysher/packer into henrysher-add-spot-instance-support
...
Conflicts:
builder/amazon/common/run_config.go
builder/amazon/ebs/builder.go
builder/amazon/instance/builder.go
2014-09-05 16:30:22 -07:00
Mitchell Hashimoto
5db91c84bf
builder/amazon: string fields on device mappings can use variables
2014-09-05 12:38:19 -07:00
Mitchell Hashimoto
ed377c9ff0
builder/amazon-instance: --no-filter by default [GH-1137]
2014-09-05 09:32:35 -07:00
Mitchell Hashimoto
0776d9de34
builder/amazon: ssh_private_ip [GH-1229]
2014-09-04 21:48:14 -07:00
Mitchell Hashimoto
5d1c1e6716
Merge pull request #1373 from anthonybishopric/debug_bundle_commands
...
builder/amazon-instance: Debug the evaluated bundle commands
2014-09-02 09:49:12 -07:00
Mitchell Hashimoto
704648896e
Merge pull request #1425 from dysinger/1424-amazon-instance-s3-region-not-url
...
builder/amazon-instance: Use Region not S3Endpoint (see Issue 1424)
2014-09-01 21:31:36 -07:00
Ulf Mansson
bebca3bfae
It's not necessary to use an instance-store image to build an instance-store image, see this example http://sorcery.smugmug.com/2014/01/29/instance-store-hvm-amis-for-amazon-ec2/ so there should be no restriction on the ExpectedRootDevice
2014-08-29 09:22:27 +02:00
Tim Dysinger
c79121617c
Use Region not S3Endpoint
2014-08-18 08:52:31 -10:00
abishopric
d62edd6c05
Print the evaluated bundle commands
2014-07-24 16:30:30 -07:00
James Massara
be27ecc64b
Add option to enable enhanced networking (SriovNetSupport) for images.
2014-06-04 14:58:11 -07:00
Henry Huang
da29d684a8
Enable the spot_price in "amazon-instance-store" AMI
2014-05-26 23:01:49 +08:00
Ross Smith II
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
2014-05-09 21:03:35 -07:00
Ross Smith II
e38ff2f84e
Merge pull request #1021 from laggyluke/master
...
builder/amazon: configurable virtualization type
2014-04-21 18:08:32 -07:00
George Miroshnykov
fc6e8c0830
builder/amazon: configurable virtualization type
2014-04-10 15:16:31 +03:00
Florian Noeding
6371b70609
optionally use existing ssh key for amazon builders
2014-03-24 12:47:00 +01:00
Alan Grosskurth
af89b31a40
builder/amazon: Fix S3 endpoint URL for instance-store builds
...
The S3 endpoint URLs don't always include the region name. See:
http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
This mapping is already provided by `goamz` via `region.S3Endpoint`,
so let's use it.
2014-02-23 22:49:10 -08:00
Ross Timson
58444627c1
Use --url flag rather than --location for ec2-upload-bundle
...
AWS docs (http://goo.gl/rNZiCs ) show that --location is deprecated and
to use the --url flag and reference the region endpoint instead.
2014-02-13 09:36:45 +00:00
Mitchell Hashimoto
8aabe01bad
builder/amazon/common: run_tags to apply to launch [GH-722]
2013-12-27 20:54:35 -07:00
Mitchell Hashimoto
ae7459718d
builder/amazon/instance: use US if region us-east-1 for upload [GH-729]
2013-12-18 09:00:20 -08:00
Mitchell Hashimoto
1234e61cda
builder/amazon/all: get rid of unnecessary field
2013-12-12 21:38:48 -08:00
Mitchell Hashimoto
f7b1c2dbc6
builder/amazon/instance: add location to upload command [GH-679]
2013-12-06 19:04:40 -08:00
Nathan Sullivan
49a131951a
reverting testing stuff
2013-11-26 13:46:32 +10:00
Nathan Sullivan
0cfb7564d5
lets try a string instead of a bool for AssociatePublicIpAddress
2013-11-26 13:44:39 +10:00
Nathan Sullivan
31bf1f342c
https://github.com/mitchellh/packer/issues/578
2013-11-26 11:32:08 +10:00
Mitchell Hashimoto
c8e911cdc3
Merge branch 'security-groups' of https://github.com/whiteley/packer into whiteley-security-groups
...
Conflicts:
builder/amazon/common/run_config.go
2013-11-05 14:34:12 -08:00