标签: amazon-web-services aws-code-deploy
我想在使用代码部署Amazon执行的脚本中导出一些变量,例如环境名称和访问权限
答案 0 :(得分:3)
if [ "$DEPLOYMENT_GROUP_NAME" == "Staging" ] then Your command here fi
参考 https://aws.amazon.com/blogs/devops/using-codedeploy-environment-variables/