action for FLRW

Can you write down the Einstein-Hilbert action \(S\) with the FLRW-symmetries applied? Can you obtain the Friedmann-equations after variation with respect to the scale factor \(a\)?