bash - Determine Deployment Group from appspec.yml -
i using elb scripts https://github.com/awslabs/aws-codedeploy-samples/tree/master/load-balancing/elb remove ec2 instances load balancer before code updates.
i need define load balancer in elb_list
variable of common_functions.sh bash script. load balancer different each environment (or deployment group).
is there way can set variable based on deployment group deploying within bash script?
the application artifacts same, deployed different environments or groups , hence, different load balancers.
well then, after searching forums on aws, see support deployment specific environment variables.
so can reference deployment group within bash , set load balancer:
if [ "$deployment_group_name" == "staging" ] elb_list="staging-elb" fi
Comments
Post a Comment