question

StefanV avatar image
StefanV asked

My Own "ask cli template" with CodeCommit?

Hello,
I want to create my own ASK CLI Template with CodeCommit.

So i copied the Hello World Template from

https://github.com/alexa/skill-sample-nodejs-hello-world.git

changed it and pushed it to my codecommit repository.


The Problem is:
My Codecommit URL doesn't end with: .GIT
But the ASK Cli throws an error when i try the following:

ask new --url https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/XXXX-Alexa-Template


The ASK Cli says: [Error]: Invalid url. Provide provide a valid git/json url.


if i would try:
ask new --url https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/XXXX-Alexa-Template.GIT

Then the ASK CLI doesn't bring the error at this point, but the clone to this url failed afterwords. (because the correct url doesn't end with .GIT)


Question: Is there any trick to use CodeCommit together with ASK CLI?

Kind Regards
Stefan

ask cli
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

i found the problem. it seems to be a bug in the file

ask-cli\lib\utils\url-utils.js

There is a Function isUrlWithGitExtension which only checks the extension of the url.

But in CodeCommit the URLs are without .GIT Ending.... hopefully this will be fixed by aws soon.

0 Likes 0 ·

0 Answers