@@ -28,7 +28,6 @@ type machineConfigV2Amazonec2 struct {
2828 IamInstanceProfile string `json:"iamInstanceProfile,omitempty" yaml:"iamInstanceProfile,omitempty"`
2929 InsecureTransport bool `json:"insecureTransport,omitempty" yaml:"insecureTransport,omitempty"`
3030 InstanceType string `json:"instanceType,omitempty" yaml:"instanceType,omitempty"`
31- KeypairName string `json:"keypairName,omitempty" yaml:"keypairName,omitempty"`
3231 KmsKey string `json:"kmsKey,omitempty" yaml:"kmsKey,omitempty"`
3332 Monitoring bool `json:"monitoring,omitempty" yaml:"monitoring,omitempty"`
3433 OpenPort []string `json:"openPort,omitempty" yaml:"openPort,omitempty"`
@@ -102,10 +101,6 @@ func flattenMachineConfigV2Amazonec2(in *MachineConfigV2Amazonec2) []interface{}
102101 obj ["instance_type" ] = in .InstanceType
103102 }
104103
105- if len (in .KeypairName ) > 0 {
106- obj ["keypair_name" ] = in .KeypairName
107- }
108-
109104 if len (in .KmsKey ) > 0 {
110105 obj ["kms_key" ] = in .KmsKey
111106 }
@@ -241,10 +236,6 @@ func expandMachineConfigV2Amazonec2(p []interface{}, source *MachineConfigV2) *M
241236 obj .InstanceType = v
242237 }
243238
244- if v , ok := in ["keypair_name" ].(string ); ok && len (v ) > 0 {
245- obj .KeypairName = v
246- }
247-
248239 if v , ok := in ["kms_key" ].(string ); ok && len (v ) > 0 {
249240 obj .KmsKey = v
250241 }
0 commit comments