'AWS Service Catalog Product using Codecommit link

As per AWS Service catalog documentation (ProvisioningArtifactProperties), one can mention either s3 or codecommit url of Cloud formation template for LoadTemplateFromURL. If we plan to use codecommit url which URL should we use.

I tried copying codecommit url from browser but it gives "Invalid Template body".

Resources:
Type: AWS::ServiceCatalog::CloudFormationProduct
Properties: 
  Description: Example Product
  Distributor: xyz
  Name: ExampleProduct
  Owner: xyz
  ProvisioningArtifactParameters: 
    - Description: Example Product
      Info: { "LoadTemplateFromURL": "https://us-east-1.console.aws.amazon.com/codesuite/codecommit/repositories/<reponame>/browse/ref/heads/main/--/CF1.yml" }
      

How to pass correct codecommit url here?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source