Commit 9bf18bd
authored
remove default ec2VolumeSize or ec2VolumeType settings (#235)
Prior to this change, if a user did not specify ec2-volume-size or
ec2-volume-type, we would send default values of "8" and "gp2" to the EC2
API.
This was a problem if the user's AMI used a snapshot with other settings
(like a bigger disk size, or another disk type like "io1"). AWS could
fail to start the nodes if the AMI was incompatible with these defaults.
Update the action to only send ec2VolumeSize or ec2VolumeType in the API
call if the user has specified a value (not an empty string).
With this change, we reintroduce the behavior prior to
8b37f73.
This change preserves the default for ec2-device-name, since we need
that default value in order to construct BlockDeviceSettings.1 parent 7377de3 commit 9bf18bd
3 files changed
+16
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145081 | 145081 | | |
145082 | 145082 | | |
145083 | 145083 | | |
145084 | | - | |
| 145084 | + | |
| 145085 | + | |
| 145086 | + | |
| 145087 | + | |
145085 | 145088 | | |
145086 | 145089 | | |
145087 | 145090 | | |
145088 | | - | |
145089 | | - | |
| 145091 | + | |
| 145092 | + | |
145090 | 145093 | | |
145091 | 145094 | | |
145092 | | - | |
145093 | | - | |
| 145095 | + | |
| 145096 | + | |
145094 | 145097 | | |
145095 | 145098 | | |
145096 | 145099 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | | - | |
81 | | - | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
85 | | - | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
0 commit comments