'AWS Codecommit is not fetching latest commit from bitbucket

I have mirrored my bitbucket in AWS codecommit. Intially whenever I pushed code to bitbucket it is getting reflected properly on codecommit.
But now I am not able to fetch the latest commit.
The latest commit I can see is two months back commit i.e. feb.

The only difference to previous is that IAM user role has slight changes in the access. But I am not sure how does this impacts in fetching the latest commits.

Thanks in advance for any suggestions.

Below steps I have performed for mirroring.

Go to the bitbucket Repository settings -> Hooks -> Enabled the Mirror hook and then add mirror repo url(codecommit repo's https url) , username(add IAM user and for me this user has a attached policy called "AWSCodeCommitPowerUser"), password and then save the configuration After doing this I was able to mirror the repo.
I had perform this mirroring in May'2021.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source