Skip to content

Commit

Permalink
fix: get CrossAccountRoleARN from labels
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 11, 2024
1 parent 380fe17 commit 80c3540
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
3 changes: 3 additions & 0 deletions pkg/describer/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 80c3540

Please sign in to comment.