sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
950 stars 186 forks source link

Quiet mode for custom domains #524

Closed ChristopherGillis closed 1 year ago

ChristopherGillis commented 2 years ago

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?

bboure commented 2 years ago

You should be able to do

sls appsync-domain create -q

let me know if that does not work

ChristopherGillis commented 2 years ago

It does not work

bboure commented 2 years ago

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

ChristopherGillis commented 1 year ago

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"