Skip to content

Ignore non-existing datasource #1537

Answered by hairyhenderson
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @air3ijai, thanks for taking the time to post this.

(FYI I edited your post to fix a broken link to #1168)

I think what you're looking for is the datasourceReachable function, which is designed for this type of situation.

Another option is to use datasourceExists, and simply not specify the secrets_regions datasource on the first run (if you know the value won't exist).

See the docs for examples on how to use these in an if/else block.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant