Stephen Fox
b1b67ecffa
Added support for setting a name in SSH key pair.
...
Also refactored how new SSH key pairs are created, and how the
tests are structured.
2019-02-04 12:07:32 -05:00
Stephen Fox
5893134c61
Updated comment for 'PrivateKeyPemBlock()'.
2019-02-04 10:02:07 -05:00
Stephen Fox
cd4ae03324
Create / use SSH key pairs in vbox builders.
...
This follows the business logic for creating / using SSH key pairs
in the cloud-type builders (e.g., Amazon EC2).
2019-02-03 12:20:52 -05:00
Stephen Fox
72d1501551
Made SSH public key available in vbox boot command.
...
The SSH public key (in authorized_keys format) can be retreived in
the build template by specifying '{{ .SSHPublicKey }}'. The key is
URL encoded to escape spaces.
2019-02-03 12:20:42 -05:00
Stephen Fox
7b857929ab
Added 'SSHPublicKeyUrlEncoded()' to comm.Config.
...
This allows us to get a URL encoded string representing the SSH
public key. This is needed because the key will have spaces when
it is in authorized_keys format.
2019-02-03 12:14:06 -05:00
Stephen Fox
459bd1ea7a
Added vbox step for SSH key pair business logic.
2019-02-03 12:07:57 -05:00
Stephen Fox
6824806e6f
Allow caller to specify new line for SSH public key.
...
The default behavior of the various builders that create SSH key
pairs appears to be to add a trailing new line. This will be the
default behavior, but at least it can be customized if desired.
2019-02-03 10:37:32 -05:00
Stephen Fox
ad075ffac3
Added 'Description()' to 'sshKeyPair'.
...
Also cleaned up tests.
2019-02-03 09:17:18 -05:00
Stephen Fox
f233e54992
Initial SSH key pair helper implementation.
2019-01-30 22:10:27 -05:00
Adrien Delorme
20c2524881
prepare for 1.3.5-dev
2019-01-30 16:45:38 +01:00
Adrien Delorme
3626fbd0f9
Cut version 1.3.4
2019-01-30 16:33:57 +01:00
Adrien Delorme
43109ea9aa
prepare to release 1.3.4
2019-01-30 16:10:18 +01:00
Adrien Delorme
43c30d6b7f
Update changelog
2019-01-28 17:32:33 +01:00
Megan Marsh
839a7658a6
Merge pull request #7226 from hashicorp/fix_6549
...
Explicitly set ProxyFromEnvironment in httpclients when creating an aws session
2019-01-25 13:24:25 -08:00
Megan Marsh
3602180b45
re-add missing import
2019-01-25 12:33:25 -08:00
Megan Marsh
035c3506ba
manually set proxyfromenvironment in default http client for ec2 sessions
2019-01-25 12:33:25 -08:00
Megan Marsh
c63b54a1e7
move http with proxy call into a helper function
2019-01-25 12:32:52 -08:00
Megan Marsh
904c4b9adb
Merge pull request #7230 from hashicorp/up-aws-sdk-go
...
Don't try to guess region from metadata if not set + update aws-sdk-go
2019-01-25 10:06:11 -08:00
Adrien Delorme
4a2773f8fa
remove default max retries config of 8, it will now be used from env
...
removing the code that wants to guess region from metadata allows us to change that setting, which can now be taken from environment.
2019-01-25 13:51:02 +01:00
Adrien Delorme
964b149df2
aws: remove now unused AccessConfig.metadataRegion
2019-01-25 13:03:14 +01:00
Adrien Delorme
335f442b51
aws: unwrap AccessConfig.region func
...
* it was used only in the Session() call.
* default region guessing from metadata should happen in the SDK, not 'manually'
2019-01-25 13:02:42 +01:00
Adrien Delorme
54af9951a8
make guard clauses to clearly see success pass
2019-01-25 13:00:21 +01:00
Adrien Delorme
0864b4d07b
name unclear import
2019-01-25 12:59:43 +01:00
Megan Marsh
a0c238940e
Merge pull request #7223 from hashicorp/fix_7200
...
escape query as suggested in issue #7200
2019-01-24 09:48:38 -08:00
Adrien Delorme
2b63569ce9
Merge remote-tracking branch 'origin/master' into up-aws-sdk-go
2019-01-24 17:32:13 +01:00
Adrien Delorme
dafb513d50
Revert "aws: set max retries back to 20"
...
This reverts commit 4f1ed08f19 .
2019-01-24 16:45:56 +01:00
Adrien Delorme
6e115cb0c4
Revert "aws: test timeout when no credenrtials are set"
...
This reverts commit 5cfc1a52cd .
2019-01-24 16:45:02 +01:00
Adrien Delorme
76ca0ca4a0
Revert "debug should retry"
...
This reverts commit c943ff00a2 .
2019-01-24 16:44:53 +01:00
Adrien Delorme
09ceef758b
Revert "enable verbose mode to see debug"
...
This reverts commit 1148bec590 .
2019-01-24 16:44:51 +01:00
Adrien Delorme
1148bec590
enable verbose mode to see debug
...
* I will remove this commit. This is very handy as appveyor/circle/travis have different ouputs
2019-01-24 14:09:45 +01:00