Monday, March 14, 2022

[SOLVED] Bitbucket IP whitelisting in EC2 security group

Issue

I want to whitelist Bitbucket IP by adding it to the security group of EC2 instance.

I have followed the steps on link : href="https://bitbucket.org/blog/new-ip-addresses-bitbucket-cloud" rel="nofollow noreferrer">https://bitbucket.org/blog/new-ip-addresses-bitbucket-cloud

I have added following IPs:

IPv4: 18.205.93.0/25, 18.234.32.128/25, and 13.52.5.0/25

But still Bitbucket pipelines are not able to connect to EC2 instance.

Can anyone please help me with it ?


Solution

If you want Bitbucket Pipelines to connect to your EC2 instance, then you need to see the Pipelines section of https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html (as included on the link you posted). The IPs you've listed are for your EC2 instance to connect to Bitbucket, not for Bitbucket to connect to your EC2 instance.



Answered By - Jim Redmond
Answer Checked By - Mildred Charles (WPSolving Admin)