Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when I run a task locally it does not seem to pickup environment variable containing values from parameterstore #1155

Open
tkumark opened this issue Jan 11, 2023 · 0 comments

Comments

@tkumark
Copy link

tkumark commented Jan 11, 2023

Summary

I am running the following command
ecs-cli local up --task-def-remote app-main:6
my taskdefinition contains environment variables which referes values in parameter store. When it runs locally it does not seem to pull those values from parameter store .

Is there anything missing or extra step I should be following?

docker-compose.ecs-local.yml

version: "3.4"
services:
  test-docker-env:
    environment:
      AWS_CONTAINER_CREDENTIALS_RELATIVE_URI: /creds
      CERT_ANDROID_P12: ${test-docker-env_CERT_ANDROID_ETUDIER_P12}
      CERT_ANDROID: ${test-docker-env_CERT_ANDROID_STUDYMODE}
      ECS_CONTAINER_METADATA_URI: http://169.254.170.2/v3
    image: 1234556677.dkr.ecr.us-east-1.amazonaws.com/test-docker-env:latest
    labels:
      ecs-local.secret.CERT_ANDROID_P12: arn:aws:ssm:us-east-1:1234556677:parameter/Dev/myparameter
      ecs-local.secret.CERT_ANDROID: arn:aws:ssm:us-east-1:1234556677:parameter/Dev/myparameter2
      ecs-local.task-definition-input.type: remote
      ecs-local.task-definition-input.value: test-docker-env:1
    networks:
      ecs-local-network: null
    ports:
    - target: 80
      published: 80
      protocol: tcp
networks:
  ecs-local-network:
    external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant