diff --git a/pkg/connector/account.go b/pkg/connector/account.go index 5d62770c..5869acae 100644 --- a/pkg/connector/account.go +++ b/pkg/connector/account.go @@ -91,8 +91,9 @@ func (o *accountResourceType) List(ctx context.Context, _ *v2.ResourceId, pt *pa l.Debug("aws-connector: account found", zap.String("name", name), zap.String("account_id", accountId), zap.String("account_status", string(status))) profile := accountProfile(ctx, account) + displayName := fmt.Sprintf("%s (%s)", name, accountId) userResource, err := resourceSdk.NewAppResource( - name, + displayName, resourceTypeAccount, accountId, []resourceSdk.AppTraitOption{resourceSdk.WithAppProfile(profile)}, diff --git a/pkg/connector/account_iam.go b/pkg/connector/account_iam.go index aed7d989..42abf66e 100644 --- a/pkg/connector/account_iam.go +++ b/pkg/connector/account_iam.go @@ -75,8 +75,9 @@ func (o *accountIAMResourceType) List(ctx context.Context, _ *v2.ResourceId, pt Id: awsSdk.ToString(account.Id), } profile := accountProfile(ctx, account) + displayName := fmt.Sprintf("%s (%s)", awsSdk.ToString(account.Name), awsSdk.ToString(account.Id)) userResource, err := resourceSdk.NewAppResource( - awsSdk.ToString(account.Name), + displayName, resourceTypeAccountIam, awsSdk.ToString(account.Id), []resourceSdk.AppTraitOption{resourceSdk.WithAppProfile(profile)},