I am using bitbucket pipeline to deploy using S3 deploy and for invalidation of by using aws-cloudfront-invalidate.
I have declared some variables at repository level and some at deployment environment level.
Here:
DISTRIBUTION_ID is a part deployment variable and during the run pipeline it is throwing error (DISTRIBUTION_ID can be a null) while invalidation pipe.
When I move DISTRIBUTION_ID to repository level variable, it is working.
I am using latest version of both pipes.