You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have tried all possible combination but still the pipeline. It worked 2 times in between but failed most of the time. I ensured bitbucket IPs are added into the AWS security group. Not sure whats going on.
Hi @Jayon Niravel and welcome to the community!
If the operation succeeds sometimes but fails other times, I suspect that not all IPs may have been whitelisted.
For requests made from Pipelines build environments, the IP ranges that need to be whitelisted are listed below (section "Valid IP addresses for Bitbucket Pipelines build environments"):
Could you please double-check if all of them have been whitelisted?
@Theodora Boudale : Yes all the IPs where added in the security group. Infact I printed the public IP before executing the ssh-keyscan.
I noticed that since I am trying to perform ssh to the newly created EC2 machine via the pipeline itself, the machine dns might takes some time to show up. If I add sleep 15s; to the script, it works every time. Tried all sort of possibilities but nothing else works.