diff --git a/go.mod b/go.mod index 7e541e73..241c37ce 100755 --- a/go.mod +++ b/go.mod @@ -142,7 +142,7 @@ require ( github.com/hashicorp/go-hclog v1.6.3 github.com/nats-io/nats.go v1.36.0 github.com/opengovern/og-aws-describer v0.60.0 - github.com/opengovern/og-util v1.1.0 + github.com/opengovern/og-util v1.1.1 github.com/opengovern/opengovernance v0.434.62-feat-integrations-service.0 github.com/spf13/cobra v1.8.1 github.com/turbot/steampipe-plugin-sdk/v5 v5.10.1 diff --git a/go.sum b/go.sum index 789a5de1..6fc46973 100644 --- a/go.sum +++ b/go.sum @@ -977,6 +977,8 @@ github.com/opengovern/og-util v1.0.6-0.20241108102418-e20a35efc8ca h1:yeF0lhv15W github.com/opengovern/og-util v1.0.6-0.20241108102418-e20a35efc8ca/go.mod h1:7l7fNhK6uewIwA0cs7QagJuhjt/E6hEAC01SR8Y0kKk= github.com/opengovern/og-util v1.1.0 h1:bV2XKX8aIpJGC2CR4kh9CU/rJWPQed76gtVXM2zBDXM= github.com/opengovern/og-util v1.1.0/go.mod h1:dyn8rhmxq59o1jnbgGfmcUvW7iB/eN6OxoTUUx6jEHA= +github.com/opengovern/og-util v1.1.1 h1:SXnPCNuhR9WxxupEa1hCtIOIh2Sy+MF80qVdpoxc58k= +github.com/opengovern/og-util v1.1.1/go.mod h1:dyn8rhmxq59o1jnbgGfmcUvW7iB/eN6OxoTUUx6jEHA= github.com/opengovern/opengovernance v0.434.62-feat-integrations-service.0 h1:DYxFV9K4IGm9xe5TpXMi8HAVEdlb4sYDKbBkRTgZRms= github.com/opengovern/opengovernance v0.434.62-feat-integrations-service.0/go.mod h1:ozdf1nCN4iXbHT+CzmgboQLd6aPE1coa09Ze599g9SE= github.com/opensearch-project/opensearch-go/v2 v2.3.0 h1:nQIEMr+A92CkhHrZgUhcfsrZjibvB3APXf2a1VwCmMQ= diff --git a/pkg/describer/worker.go b/pkg/describer/worker.go index 182ee0a9..fa1f7056 100755 --- a/pkg/describer/worker.go +++ b/pkg/describer/worker.go @@ -96,6 +96,9 @@ func doDescribe( if err != nil { return nil, fmt.Errorf(" account credentials: %w", err) } + creds.CrossAccountRoleName = job.IntegrationLabels["CrossAccountRoleARN"] + + logger.Info("Creds", zap.Any("creds", creds)) f := func(resource model.Resource) error { if resource.Description == nil {