Disable/Enable APIs on AWS Codepipeline for test automation runs

0

Hi,

We are noticing an issue where our automated UI tests are failing on AWS Codepipeline because a table on one of our application webpages fails to load ONLY on AWS codepipeline. The same tests pass on local where the table loads without any issues. Upon investigating, it looks like the API that needs to be called for the table to load is being blocked on AWS codepipeline. Is there a way to disable/enable APIs on Codepipeline? We would greatly appreciate it if someone could please point us to the AWS settings to enable/disable APIs as it would help us further investigate and resolve this issue.

Thanks,

Umair

1 Answer
0

Hello Umair,

Thank you for your query.

Regarding your issue, can you please let me know which API call are you talking about. If this API call is for any IAM related permission, you can ALLOW/DENY it using the Code Pipeline service role from the IAM console. [] Identity and access management for AWS CodePipeline - https://docs.aws.amazon.com/codepipeline/latest/userguide/security-iam.html

Further, if the permission is needed at the user level, you can follow below link. [] Grant approval permissions to an IAM user in CodePipeline - https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-iam-permissions.html

Also, since you mentioned that the API call was for loading the table which is failing, can you please let us know if this API call is a web API call? If it is, then we do not need to make changes as suggested above regarding IAM permissions. For a web API call, I would like to mention that CodePipeline does not block web API calls. Therefore you need to check either your build or deploy stage where this API call is getting executed.

Further, for troubleshooting specific to your pipeline, I would request you to please reach out to us via AWS Support case so that we can better assist you.

Thank you.

AWS
SUPPORT ENGINEER
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions