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 @[deleted] 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?
Kind regards,
Theodora
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.