pratiks
2/13/2017 - 12:10 AM

Micros External Store

Micros External Store

# add to sd.yml file 
# This creates your resource 

resources:
- type: redis
  name: karma
  
# if you're adding to a existing service, you must provide the following flag during deployment. 

service:deploy -u cfn-base -c

# Build In Env Vars Created By Micros 

REDIS_KARMA_HOST 
REDIS_KARMA_PORT 

#Refs
https://extranet.atlassian.com/display/MICROS/2016/07/05/You+can+now+provision+your+own+Postgres+RDS+in+Micros
https://extranet.atlassian.com/display/MICROS/Provisioning+Resources


When you add a redis store to your existing environment, a docker container is created and then linked to the app container. Using the built-in env vars, see above, you can build the connection string and store it as another env var.