@@ -81,18 +81,18 @@ func (s *Cloudformation) CreateStack() (output *cloudformation.CreateStackOutput
81
81
namespace := helpers .CreateParam ("Namespace" , s .DynamoDB .Namespace )
82
82
clusterName := helpers .CreateParam ("ClusterName" , s .config .ClusterName )
83
83
tableName := helpers .CreateParam ("TableName" , helpers .Stringify (s .DynamoDB .Name ))
84
- rangeAttributeNameTemp := "{{.Obj.Spec.RangeAttribute.Name}}"
85
- rangeAttributeNameValue , err := helpers .Templatize (rangeAttributeNameTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
84
+ rangeAttributenameTemp := "{{.Obj.Spec.RangeAttribute.Name}}"
85
+ rangeAttributenameValue , err := helpers .Templatize (rangeAttributenameTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
86
86
if err != nil {
87
87
return output , err
88
88
}
89
- rangeAttributeName := helpers .CreateParam ("RangeAttributeName" , helpers .Stringify (rangeAttributeNameValue ))
90
- rangeAttributeTypeTemp := "{{.Obj.Spec.RangeAttribute.Type}}"
91
- rangeAttributeTypeValue , err := helpers .Templatize (rangeAttributeTypeTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
89
+ rangeAttributename := helpers .CreateParam ("RangeAttributeName" , helpers .Stringify (rangeAttributenameValue ))
90
+ rangeAttributetypeTemp := "{{.Obj.Spec.RangeAttribute.Type}}"
91
+ rangeAttributetypeValue , err := helpers .Templatize (rangeAttributetypeTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
92
92
if err != nil {
93
93
return output , err
94
94
}
95
- rangeAttributeType := helpers .CreateParam ("RangeAttributeType" , helpers .Stringify (rangeAttributeTypeValue ))
95
+ rangeAttributetype := helpers .CreateParam ("RangeAttributeType" , helpers .Stringify (rangeAttributetypeValue ))
96
96
readCapacityUnitsTemp := "{{.Obj.Spec.ReadCapacityUnits}}"
97
97
readCapacityUnitsValue , err := helpers .Templatize (readCapacityUnitsTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
98
98
if err != nil {
@@ -105,31 +105,31 @@ func (s *Cloudformation) CreateStack() (output *cloudformation.CreateStackOutput
105
105
return output , err
106
106
}
107
107
writeCapacityUnits := helpers .CreateParam ("WriteCapacityUnits" , helpers .Stringify (writeCapacityUnitsValue ))
108
- hashAttributeNameTemp := "{{.Obj.Spec.HashAttribute.Name}}"
109
- hashAttributeNameValue , err := helpers .Templatize (hashAttributeNameTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
108
+ hashAttributenameTemp := "{{.Obj.Spec.HashAttribute.Name}}"
109
+ hashAttributenameValue , err := helpers .Templatize (hashAttributenameTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
110
110
if err != nil {
111
111
return output , err
112
112
}
113
- hashAttributeName := helpers .CreateParam ("HashAttributeName" , helpers .Stringify (hashAttributeNameValue ))
114
- hashAttributeTypeTemp := "{{.Obj.Spec.HashAttribute.Type}}"
115
- hashAttributeTypeValue , err := helpers .Templatize (hashAttributeTypeTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
113
+ hashAttributename := helpers .CreateParam ("HashAttributeName" , helpers .Stringify (hashAttributenameValue ))
114
+ hashAttributetypeTemp := "{{.Obj.Spec.HashAttribute.Type}}"
115
+ hashAttributetypeValue , err := helpers .Templatize (hashAttributetypeTemp , helpers.Data {Obj : s .DynamoDB , Config : s .config , Helpers : helpers .New ()})
116
116
if err != nil {
117
117
return output , err
118
118
}
119
- hashAttributeType := helpers .CreateParam ("HashAttributeType" , helpers .Stringify (hashAttributeTypeValue ))
119
+ hashAttributetype := helpers .CreateParam ("HashAttributeType" , helpers .Stringify (hashAttributetypeValue ))
120
120
121
121
parameters := []* cloudformation.Parameter {}
122
122
parameters = append (parameters , resourceName )
123
123
parameters = append (parameters , resourceVersion )
124
124
parameters = append (parameters , namespace )
125
125
parameters = append (parameters , clusterName )
126
126
parameters = append (parameters , tableName )
127
- parameters = append (parameters , rangeAttributeName )
128
- parameters = append (parameters , rangeAttributeType )
127
+ parameters = append (parameters , rangeAttributename )
128
+ parameters = append (parameters , rangeAttributetype )
129
129
parameters = append (parameters , readCapacityUnits )
130
130
parameters = append (parameters , writeCapacityUnits )
131
- parameters = append (parameters , hashAttributeName )
132
- parameters = append (parameters , hashAttributeType )
131
+ parameters = append (parameters , hashAttributename )
132
+ parameters = append (parameters , hashAttributetype )
133
133
134
134
stackInputs .SetParameters (parameters )
135
135
@@ -170,18 +170,18 @@ func (s *Cloudformation) UpdateStack(updated *awsV1alpha1.DynamoDB) (output *clo
170
170
namespace := helpers .CreateParam ("Namespace" , s .DynamoDB .Namespace )
171
171
clusterName := helpers .CreateParam ("ClusterName" , s .config .ClusterName )
172
172
tableName := helpers .CreateParam ("TableName" , helpers .Stringify (s .DynamoDB .Name ))
173
- rangeAttributeNameTemp := "{{.Obj.Spec.RangeAttribute.Name}}"
174
- rangeAttributeNameValue , err := helpers .Templatize (rangeAttributeNameTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
173
+ rangeAttributenameTemp := "{{.Obj.Spec.RangeAttribute.Name}}"
174
+ rangeAttributenameValue , err := helpers .Templatize (rangeAttributenameTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
175
175
if err != nil {
176
176
return output , err
177
177
}
178
- rangeAttributeName := helpers .CreateParam ("RangeAttributeName" , helpers .Stringify (rangeAttributeNameValue ))
179
- rangeAttributeTypeTemp := "{{.Obj.Spec.RangeAttribute.Type}}"
180
- rangeAttributeTypeValue , err := helpers .Templatize (rangeAttributeTypeTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
178
+ rangeAttributename := helpers .CreateParam ("RangeAttributeName" , helpers .Stringify (rangeAttributenameValue ))
179
+ rangeAttributetypeTemp := "{{.Obj.Spec.RangeAttribute.Type}}"
180
+ rangeAttributetypeValue , err := helpers .Templatize (rangeAttributetypeTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
181
181
if err != nil {
182
182
return output , err
183
183
}
184
- rangeAttributeType := helpers .CreateParam ("RangeAttributeType" , helpers .Stringify (rangeAttributeTypeValue ))
184
+ rangeAttributetype := helpers .CreateParam ("RangeAttributeType" , helpers .Stringify (rangeAttributetypeValue ))
185
185
readCapacityUnitsTemp := "{{.Obj.Spec.ReadCapacityUnits}}"
186
186
readCapacityUnitsValue , err := helpers .Templatize (readCapacityUnitsTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
187
187
if err != nil {
@@ -194,31 +194,31 @@ func (s *Cloudformation) UpdateStack(updated *awsV1alpha1.DynamoDB) (output *clo
194
194
return output , err
195
195
}
196
196
writeCapacityUnits := helpers .CreateParam ("WriteCapacityUnits" , helpers .Stringify (writeCapacityUnitsValue ))
197
- hashAttributeNameTemp := "{{.Obj.Spec.HashAttribute.Name}}"
198
- hashAttributeNameValue , err := helpers .Templatize (hashAttributeNameTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
197
+ hashAttributenameTemp := "{{.Obj.Spec.HashAttribute.Name}}"
198
+ hashAttributenameValue , err := helpers .Templatize (hashAttributenameTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
199
199
if err != nil {
200
200
return output , err
201
201
}
202
- hashAttributeName := helpers .CreateParam ("HashAttributeName" , helpers .Stringify (hashAttributeNameValue ))
203
- hashAttributeTypeTemp := "{{.Obj.Spec.HashAttribute.Type}}"
204
- hashAttributeTypeValue , err := helpers .Templatize (hashAttributeTypeTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
202
+ hashAttributename := helpers .CreateParam ("HashAttributeName" , helpers .Stringify (hashAttributenameValue ))
203
+ hashAttributetypeTemp := "{{.Obj.Spec.HashAttribute.Type}}"
204
+ hashAttributetypeValue , err := helpers .Templatize (hashAttributetypeTemp , helpers.Data {Obj : updated , Config : s .config , Helpers : helpers .New ()})
205
205
if err != nil {
206
206
return output , err
207
207
}
208
- hashAttributeType := helpers .CreateParam ("HashAttributeType" , helpers .Stringify (hashAttributeTypeValue ))
208
+ hashAttributetype := helpers .CreateParam ("HashAttributeType" , helpers .Stringify (hashAttributetypeValue ))
209
209
210
210
parameters := []* cloudformation.Parameter {}
211
211
parameters = append (parameters , resourceName )
212
212
parameters = append (parameters , resourceVersion )
213
213
parameters = append (parameters , namespace )
214
214
parameters = append (parameters , clusterName )
215
215
parameters = append (parameters , tableName )
216
- parameters = append (parameters , rangeAttributeName )
217
- parameters = append (parameters , rangeAttributeType )
216
+ parameters = append (parameters , rangeAttributename )
217
+ parameters = append (parameters , rangeAttributetype )
218
218
parameters = append (parameters , readCapacityUnits )
219
219
parameters = append (parameters , writeCapacityUnits )
220
- parameters = append (parameters , hashAttributeName )
221
- parameters = append (parameters , hashAttributeType )
220
+ parameters = append (parameters , hashAttributename )
221
+ parameters = append (parameters , hashAttributetype )
222
222
223
223
stackInputs .SetParameters (parameters )
224
224
0 commit comments