Action committed through self-interest Is good action that is committed through self interest capable of creating good karma? 
For example

one may contemplate, “if I do action X, it will produce good effects in the future for me, or it may make me look like a good person, etc.”

Are such intentions viewed as greedy? 
If such intentions are rooted in greed, then it is possible to do something good out of greed? What kind of karmic effect will that produce?
Only wholesome actions can lead to wholesome resultants.

In the same way only unwholesome actions can lead to unwholesome resultants.

This is stated in the first 2 verses of the Dhammapada.



What are the unwholesome actions based in? They are based in the 3 unwholesome roots (akusala-mūla) which are greed, hatred and delusion. From these roots all other defilements emerge.

To act in a wholesome way one needs to cultivate and act on the 3 wholesome roots which are non-greed, non-hatred, non-delusion (wisdom). Actions based in these roots will lead to wholesome resultants for oneself and others. 

How to cultivate the wholesome roots? By following the Noble Eightfold Path. In here we have the recipe for overcoming suffering and ignorance. 

Especially the Wisdom-group which contains "Right View and Right Intention" is relevant here with regard to the twin verses in the Dhammapada, since it cultivates intentions based on renunciation, good-will and harmlessness.