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

AWS Firelens configuration #5084

Open
maggiedeuitch opened this issue May 6, 2020 · 3 comments
Open

AWS Firelens configuration #5084

maggiedeuitch opened this issue May 6, 2020 · 3 comments

Comments

@maggiedeuitch
Copy link

maggiedeuitch commented May 6, 2020

Hi there,

I'm trying to configure AWS Firelens and my build fails. Firelens is relatively new, so I'm wondering if Shippable supports it?
It doesn't seem to like the dependsOn and firelensConfiguration parameters

jobs:
  - name: example-manifest
     type: manifest
     steps:
       - IN: app-img
       - IN: app-options
         applyTo:
         - app-img
       - IN: log-router-img
       - IN: log-router-img-options
         applyTo:
         - log-router-img
...
  - name: example-deploy
     type: deploy
     method: upgrade
     steps:
      - IN: example-manifest
         switch: 'off'
      - IN: example-manifest-options
      applyTo:
      - manifest: example-manifest
...
resources:
  - name: example-manifest-options
     type: dockerOptions
     versionTemplate:
       taskDefinition:
         taskRoleArn: "arn:aws:iam::1234:role/ecs-task-firehose"
         executionRoleArn: "arn:aws:iam::1234:role/ecsTaskExecutionRole"
       networkMode: "bridge"

  - name: app-options
     type: dockerOptions
     versionTemplate:
       memoryReservation: 350
       cpu: 100
       logConfig:
         type: "awsfirelens"
         options:
          delivery_stream: example-stream-name
          region: ca-central-1
          Name: firehose
      dependsOn:
        containerName: log-router-img
        condition: START

 - name: log-router-img-options
   type: dockerOptions
   versionTemplate:
     memoryReservation: 50
     cpu: 50
     logConfig:
       type: "awslogs"
       options:
          awslogs-group: /ecs/example-manifest
          awslogs-region: ca-central-1
          awslogs-stream-prefix: ecs
     firelensConfiguration:
        type: "fluentbit"
        options: null

 - name: app-img
    type: image
    integration: ecr-integration
    pointer:
      sourceName: 123456789.dkr.ecr.ca-central-1.amazonaws.com/app-image
    seed:
      versionName: latest

 - name: log-router-img
    type: image
    integration: ecr-integration
    pointer:
      sourceName: 906394416424.dkr.ecr.ca-central-1.amazonaws.com/aws-for-fluent-bit
    seed:
      versionName: latest

@maggiedeuitch
Copy link
Author

@a-murphy Could I get some help on this, please?

@a-murphy
Copy link

We've determined what we would need to change to make this work, but I don't know when or if we are planning to update it. Those options won't currently work in a deploy job. If you really need AWS Firelens now, you would have to write your own deployment script in a runSh job.

@maggiedeuitch
Copy link
Author

Ok, thank you for the reply.

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

No branches or pull requests

2 participants