(The) Die Is Cast

What does the idiom “(The) Die Is Cast” mean?

Definition:

We cannot reverse the decision we have made

For example:

“Now that we’ve invested all this money in the new factory, the die is cast. We have to continue our Brazilian operation for several more decades.”