serverless-appsync-plugin icon indicating copy to clipboard operation
serverless-appsync-plugin copied to clipboard

Quiet mode for custom domains

Open ChristopherGillis opened this issue 2 years ago • 3 comments

I'd like to have the create domain step be part of our deploy pipeline, which means I'd like to have it not throw an error if the domain already exists.

I see in the code a quiet option, but I can't get it to work.

https://github.com/sid88in/serverless-appsync-plugin/blob/a2bb44a211ab23d725a8b21dae58564393d3ab9d/src/index.js#L106

Any ideas?

ChristopherGillis avatar Aug 29 '22 23:08 ChristopherGillis

You should be able to do

sls appsync-domain create -q

let me know if that does not work

bboure avatar Aug 30 '22 06:08 bboure

It does not work

ChristopherGillis avatar Aug 31 '22 18:08 ChristopherGillis

I'll have a look when I have a moment.

bboure avatar Sep 05 '22 06:09 bboure

This is working now. Note that assoc does not require -q. It fails cleanly by default.

          "sls appsync-domain create -q",
          "sls appsync-domain assoc",
          "sls appsync-domain create-record -q"

ChristopherGillis avatar Nov 23 '22 22:11 ChristopherGillis