@@ -32,7 +32,7 @@ const (
3232)
3333
3434// connectionInfo is decoded from the ConnInfo of the resource. These are the
35- // only keys we look at. If a KeyFile is given, that is used instead
35+ // only keys we look at. If a PrivateKey is given, that is used instead
3636// of a password.
3737type connectionInfo struct {
3838 User string
@@ -50,10 +50,6 @@ type connectionInfo struct {
5050 BastionPrivateKey string `mapstructure:"bastion_private_key"`
5151 BastionHost string `mapstructure:"bastion_host"`
5252 BastionPort int `mapstructure:"bastion_port"`
53-
54- // Deprecated
55- KeyFile string `mapstructure:"key_file"`
56- BastionKeyFile string `mapstructure:"bastion_key_file"`
5753}
5854
5955// parseConnectionInfo is used to convert the ConnInfo of the InstanceState into
@@ -101,15 +97,6 @@ func parseConnectionInfo(s *terraform.InstanceState) (*connectionInfo, error) {
10197 connInfo .TimeoutVal = DefaultTimeout
10298 }
10399
104- // Load deprecated fields; we can handle either path or contents in
105- // underlying implementation.
106- if connInfo .PrivateKey == "" && connInfo .KeyFile != "" {
107- connInfo .PrivateKey = connInfo .KeyFile
108- }
109- if connInfo .BastionPrivateKey == "" && connInfo .BastionKeyFile != "" {
110- connInfo .BastionPrivateKey = connInfo .BastionKeyFile
111- }
112-
113100 // Default all bastion config attrs to their non-bastion counterparts
114101 if connInfo .BastionHost != "" {
115102 // Format the bastion host if needed.
0 commit comments