DEV Community

Discussion on: Bitbucket Pipeline deployment with AWS ECR on EC2

Collapse
 
socialmediatester profile image
Media Tester

Hi,
First of all thank you for this informative post.

in you code as you mention:
pipe: "atlassian/ssh-run:0.2.4"
variables:
SSH_USER: ec2-user
SERVER: $SERVER_IP
SSH_KEY: $SSH_KEY
MODE: script
COMMAND: demo-repo-container-script.sh

in server variable can we pass multiple server IP so we can deploy code to multiple server at once?

Thank you again

Collapse
 
yash0212 profile image
Yash Lotan

Sorry for the super late reply, the pipe I used in this article does not support running same script on mutiple servers. You can add multiple pipes in same step to execute the script on multiple server so, each pipe will be responsible for executing the script on each server