Skip to content

Commit

Permalink
using new export api for tcld
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-yin committed Nov 15, 2024
1 parent 07a83d3 commit 24d13f9
Show file tree
Hide file tree
Showing 17 changed files with 22,965 additions and 8,675 deletions.
8 changes: 0 additions & 8 deletions app/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,3 @@ func parseSAPrincipal(saPrincipal string) (string, string, error) {

return saId, gcpProjectId, nil
}

func getAssumedRoleArn(awsAccountId string, awsRoleName string) string {
return fmt.Sprintf("arn:aws:iam::%s:role/%s", awsAccountId, awsRoleName)
}

func getSAPrincipal(saId string, gcpProjectId string) string {
return fmt.Sprintf("%s@%s.iam.gserviceaccount.com", saId, gcpProjectId)
}
2 changes: 1 addition & 1 deletion app/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *testServer) GetAsyncOperation(ctx context.Context, req *cloudservice.Ge
return &cloudservice.GetAsyncOperationResponse{
AsyncOperation: &operation.AsyncOperation{
Id: "test-id",
State: "fulfilled",
State: operation.STATE_FULFILLED,
},
}, nil
}
Expand Down
Loading

0 comments on commit 24d13f9

Please sign in to comment.