Asif Saeed
Asif Saeed

Reputation: 2045

How to set and get environment variables in CodeDeploy

I want to export some variable like environment name and access in the script executed using code deploy Amazon

Upvotes: 5

Views: 2134

Answers (1)

Affan
Affan

Reputation: 150

 if [ "$DEPLOYMENT_GROUP_NAME" == "Staging" ]
  then
      Your command here
 fi

refrence https://aws.amazon.com/blogs/devops/using-codedeploy-environment-variables/

Upvotes: 2

Related Questions