compose-x / ecs_composex

Manage, Configure and Deploy your services and AWS services and applications from your docker-compose definitions
https://docs.compose-x.io
Mozilla Public License 2.0
158 stars 16 forks source link

Expose env vars as parameters to the stack #682

Closed JohnPreston closed 11 months ago

JohnPreston commented 11 months ago

tested with

services:
  proxy:
    image: nginx
    environment:
      ENV_var01: something
      ENV_VAR_01: else
      env_VAR02: hello
      ENVVAR02: world
      PXY_ANumber: 10
    x-environment:
      SetAsParameter:
        - ENV_var01
        - ENV_VAR_01
        - env_VAR02
        - ENVVAR02
        - DOES_NOT_EXIST
        - PXY_ANumber
  backend:
    image: nginx
    environment:
      ENV_var01: 1
      ENV_VAR_01: else
      env_VAR02: hello
      ENVVAR02: world
    x-environment:
      SetAsParameter:
        ENV_var01:
          Type: Number
        ENV_VAR_01:
          Type: String
        env_VAR02:
          Type: CommaDelimitedList
          Description: Something totally useful
        ENVVAR02:
          Type: String
          AllowedPattern: '^[\w]+$'
        DOES_NOT_EXIST:
          Type: WhateverTheWeather
sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication