I will discuss under which conditions a cosmological constant can be added to a given supergravity theory. In the case of a positive cosmological constant I will show how the results are related to brane supersymmetrty breaking using an anti-D3-brane.