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 

re http://blogs.aws.amazon.com/application-management/post/tx1px2xmplypuld/using-codedeploy-environment-variables


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -