1 개요[ | ]
- VCAP_SERVICES 환경변수
- Cloud Foundry 환경변수 중 하나
- 앱에 연결(bind)된 서비스 정보를 담고 있음
2 구조[ | ]
속성 | 설명 |
---|---|
name | 사용자가 지정한 서비스 인스턴스 이름 |
label | 서비스 제공 이름 |
tags | 서비스 인스턴스 인식을 위해 사용되는 태그들 |
plan | 서비스 플랜 |
credentials | 서비스 접속정보(credentials)를 담은 JSON 객체 |
3 예시[ | ]
json
Copy
VCAP_SERVICES=
{
"elephantsql": [
{
"name": "elephantsql-c6c60",
"label": "elephantsql",
"tags": [
"postgres",
"postgresql",
"relational"
],
"plan": "turtle",
"credentials": {
"uri": "postgres://exampleuser:examplepass@babar.elephantsql.com:5432/exampleuser"
}
}
],
"sendgrid": [
{
"name": "mysendgrid",
"label": "sendgrid",
"tags": [
"smtp"
],
"plan": "free",
"credentials": {
"hostname": "smtp.sendgrid.net",
"username": "QvsXMbJ3rK",
"password": "HCHMOYluTv"
}
}
]
}
4 같이 보기[ | ]
5 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.