5

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Asif Saeed
  • 1,985
  • 14
  • 24

1 Answers1

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

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

Asif Saeed
  • 1,985
  • 14
  • 24
Affan
  • 150
  • 11