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개 답변
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
지원 엔지니어
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠