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

Using conjurctl account create --name --password-from-stdin - does not work #43

Open
1 of 3 tasks
jp15310 opened this issue Jun 14, 2022 · 0 comments
Open
1 of 3 tasks

Comments

@jp15310
Copy link

jp15310 commented Jun 14, 2022

Summary

Error when executing through AWS Exec cli> conjurctl account create --name --password-from-stdin

Steps to Reproduce

  1. Go to '.Starting session with SessionId: ecs-execute-command-
  2. Execute 'conjurctl account create --name --password-from-stdin'
  3. See error

Expected Results

Able to login to Conjur Server as Admin

Actual Results

conjurctl account create --name --password-from-stdin
error: DATABASE_URL not set

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

V0.1.0

*Conjur:
Version 1.17.7-2710
API Version 5.3.0
*

Environment setup

  • Running on AWS ECS Fargate v1.4.0
  • Which cloud provider? Which container orchestrator (including version)?
  • The more info you can share about your runtime environment, the better we may be able to reproduce the issue.

Additional Information

*Commands I used to exec in

enables execute command

aws ecs update-service --cluster CLUSTER_NAME --service SERVICE_NAME --region REGION --enable-execute-command --force-new-deployment

adds ARN to environment for easier cli. Does assume only 1 task running for the service, otherwise just manually go to ECS and grab arn and set them for your cli

TASK_ARN=$(aws ecs list-tasks --cluster CLUSTER_NAME --service SERVICE_NAME --region REGION --output text --query 'taskArns[0]')

see the task,

aws ecs describe-tasks --cluster CLUSTER_NAME --region REGION --tasks $TASK_ARN

exec in

aws ecs execute-command --region REGION --cluster CLUSTER_NAME --task $TASK_ARN --container CONTAINER --command "sh" --interactive*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants