Skip to content

Commit 308e4e4

Browse files
committed
Not doing the secret key import for now
1 parent dcb0386 commit 308e4e4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

sumologic/resource_sumologic_kinesis_metrics_source.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,12 @@ func resourceSumologicKinesisMetricsSourceRead(d *schema.ResourceData, meta inte
161161
}
162162

163163
kinesisMetricsResources := source.ThirdPartyRef.Resources
164-
auth := getKinesisMetricsThirdPartyAuth(kinesisMetricsResources)
165164
path := getKinesisMetricsThirdPartyPathAttributes(kinesisMetricsResources)
166165

167166
if err := d.Set("path", path); err != nil {
168167
return err
169168
}
170169

171-
if err := d.Set("authentication", auth); err != nil {
172-
return err
173-
}
174-
175170
if err := resourceSumologicSourceRead(d, source.Source); err != nil {
176171
return fmt.Errorf("%s", err)
177172
}
@@ -240,23 +235,3 @@ func getKinesisMetricsThirdPartyPathAttributes(pollingResource []PollingResource
240235
}
241236
return s
242237
}
243-
244-
func getKinesisMetricsThirdPartyAuth(pollingResource []PollingResource) []map[string]interface{} {
245-
auth := make(map[string]interface{})
246-
pr := pollingResource[0]
247-
auth["type"] = pr.Authentication.Type
248-
249-
if pr.Authentication.AwsID != "" {
250-
auth["access_key"] = pr.Authentication.AwsID
251-
}
252-
if pr.Authentication.AwsKey != "" {
253-
auth["secret_key"] = pr.Authentication.AwsKey
254-
}
255-
if pr.Authentication.RoleARN != "" {
256-
auth["role_arn"] = pr.Authentication.RoleARN
257-
}
258-
259-
var authArrary []map[string]interface{}
260-
authArrary = append(authArrary, auth)
261-
return authArrary
262-
}

0 commit comments

Comments
 (0)