You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kang3498
changed the title
🐛 Bug Report: The URL of AWS Codecommit Integration is not recognized properly.
🐛 Bug Report: The issue of AWS Code Commit integration
May 14, 2024
📜 Description
First of all, thank you so much for creating the AWS Codecommit Integration feature.
I tried this feature as soon as it was released and I found one problem.
In the link below, config.host is forced to console.aws.amazon.com, so, If I set repoContentsUrl to {region}.console.aws.amazon.com in the catalog:register action, No Integration error occurs.
https://github.com/stijnbrouwers/backstage/blob/master/packages/integration/src/awsCodeCommit/config.ts#L67
Instead, if I remove the region from the url, an error occurs due to the link below.
https://github.com/stijnbrouwers/backstage/blob/master/packages/backend-common/src/reading/AwsCodeCommitUrlReader.ts#L70
I think it should be changed to load the host from config instead of forcefully assigning it in the first link.
👍 Expected behavior
I think the steps below should succeed.
👎 Actual Behavior with Screenshots
InputError: No integration found for host https://ap-northeast-2.console.aws.amazon.com/codesuite/codecommit/repositories/test-repo/browse/refs/heads/main/--/catalog-info.yaml
👟 Reproduction steps
name: Register2
action: catalog:register
input:
catalogInfoPath: .backstage/catalog-info.yaml
repoContentsUrl: https://ap-northeast-2.console.aws.amazon.com/codesuite/codecommit/repositories/test-repo/browse/--/
📃 Provide the context for the Bug.
No response
🖥️ Your Environment
backstage : v1.26.5
@backstage/backend-common: 0.21.6
@backstage/integration: 1.10.0
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: