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

Failed Agent Infisical create files in EFS #3043

Open
douglasqueirozalmeida opened this issue Jan 25, 2025 · 0 comments
Open

Failed Agent Infisical create files in EFS #3043

douglasqueirozalmeida opened this issue Jan 25, 2025 · 0 comments

Comments

@douglasqueirozalmeida
Copy link

Describe the bug

Agent Infisical runs but does not create files with the token and secrets.

To Reproduce

step by step
https://infisical.com/docs/integrations/platforms/ecs-with-agent

Expected behavior

Files in EFS

Screenshots

Image
Image

Platform you are having the issue on:

AWS -> ECS FARGATE

Additional context

{
      name        = "infisical-agent",
      image       = "infisical/cli:0.34.1",
      cpu         = 1024
      memory      = 1024
      networkMode = "awsvpc",
      command     = ["agent"],
      essential   = false,
      logConfiguration = {
        logDriver = "awslogs",
        options = {
          awslogs-group         = "/ecs/agent",
          awslogs-region        = "us-east-1",
          awslogs-stream-prefix = "ecs"
        }
      },
      healthCheck = {
        command     = ["CMD-SHELL", "agent", "--help"],
        interval    = 30,
        timeout     = 5,
        retries     = 3,
        startPeriod = 0
      },
      environment = [
        {
          name  = "INFISICAL_MACHINE_IDENTITY_ID"
          value = "xxxxx"
        },
        {
          name  = "INFISICAL_AGENT_CONFIG_BASE64"
          value = base64encode(file("${path.module}/agent-config.yaml"))
        }
      ],
      mountPoints = [
        {
          containerPath = "/infisical-agent",
          sourceVolume  = "infisical-efs",
        }
      ]
    }
volume {
    name = "infisical-efs"
    efs_volume_configuration {
      file_system_id = "fs-0dc32d6c9e9883bcd"
      root_directory = "/"
    }
  }
infisical:
  address: https://app.infisical.com
  exit-after-auth: true
auth:
  type: aws-iam
sinks:
  - type: file
    config:
      path: /infisical-agent/access-token
templates:
  - template-content: |
      {{- with secret "xxxxx" "dev" "/" }}
      {{- range . }}
      {{ .Key }}={{ .Value }}
      {{- end }}
      {{- end }}
    destination-path: /infisical-agent/secrets
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