AWS Code pipeline-System manager Association Error

Hi team
I am unable to create 2 stage CI CD code pipeline as SSM association is getting failed.
After running pipeline, association is getting failed under state manager in AWS system manager, hence it is unable to install Code deploy agent automatically in EC2 instance.
Could we please take a look and provide resolution?
Thanks