Rebel Wilson shared a photo of herself, standing near the swimming pool wearing a swimsuit over the weekend on Instagram.

The 42-year-old actress admitted putting on 3 kg during the holiday, saying "I’m at an amazing all-inclusive resort…I’ve lost all self control."

However, the actress is confident enough that she will again hit the gym, eat healthy, hydrate and love herself in order to lose those extra pounds.

"It doesn’t help to be hard on yourself but I know what it’s like to feel guilty and not great after eating too much," she added. "But if you’re like me just know YOU are more than just your weight, your weight doesn’t define you, just try your best to be healthy and don’t be so hard on yourself."

"Be the best version of you," she concluded the post.

Celebs and fans took to the comments section to share their reactions.

Journalist Laura Brown commented, "What do they say, happiness is the best look of all?" with a smiling emoji while reality star Montana Brown wrote, "You look amazing."

One of the fans shared how they gained weight again due to messed up life, adding "Thank you for sharing all of you, I wish I had a role model like you when I was a kid . Your talent and charisma and star quality doesn't care what dress size you are."

Another fan added, "Wow! I really needed to read that!"

Last year, Wilson revealed her motivation to lose weight. "It first started when I was looking into fertility stuff and the doctor was like, 'Well, you'd have a much better chance if you were healthier,'" she said.

"If I lost some excess weight that it would give me a better chance for freezing eggs and having the eggs be a better quality," she added.

On the work front, Wilson was last seen in the comedy movie, "Senior Year," which was helmed by director Alex Hardcastle. She will be next seen in the drama movie, "The Almond and the Seahorse," which is directed by Celyn Jones and Tom Stern.

Rebel Wilson
Rebel Wilson attends the 2016 Vanity Fair Oscar Party Hosted By Graydon Carter at the Wallis Annenberg Center for the Performing Arts on Feb. 28, 2016 in Beverly Hills, California. Getty Images/Pascal Le Segretain