Giter Site home page Giter Site logo

gsanchezgavier / fargate-runner-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newrelic/fargate-runner-action

0.0 0.0 0.0 74 KB

New Relic GitHub Action for running in private AWS fargate

License: Apache License 2.0

Shell 2.55% Go 54.79% HCL 36.95% Dockerfile 5.71%

fargate-runner-action's Introduction

Community Project header

Fargate Runner Action

GitHub Action that allows to execute given Fargate task and stream logs back.

Usage

In order to use this Github Action you will need to add the following code snippet to your GitHub workflow file.

env:
  AWS_ASSUME_ROLE: 'arn:aws:iam::018789649883:role/caos-pipeline-oidc'
  ANSIBLE_FORKS: 20

permissions:
  id-token: write

jobs:
  test-with-fatgate:
    name: Testing something with fargate task
    runs-on: ubuntu-22.04

    steps:
      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          role-to-assume: ${{ env.AWS_ASSUME_ROLE }}
          aws-region: us-east-2

      - name: Fargate task
        uses: newrelic/fargate-runner-action@v1
        with:
          aws_region: us-east-2
          container_make_target: "test"
          ecs_cluster_name: fargate_cluster_1
          task_definition_name: fargate_task_1
          cloud_watch_logs_group_name: /ecs/fargate-logs
          cloud_watch_logs_stream_name: ecs/fargate-logs
          aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
          repo_name: "newrelic/infrastructure-agent"
          ref: "main"

Inputs

Key Description
aws_region AWS region where the fargate cluster is
aws_vpc_subnet AWS vpc for the Fargate cluster
ecs_cluster_name AWS fargate cluster name
task_definition_name AWS fargate task definition name
container_make_target Command to run in the task container
cloud_watch_logs_group_name AWS cloud watch logs group name. Needed to stream logs back
cloud_watch_logs_stream_name AWS cloud watch logs stream name. Needed to stream logs back
log_filters List of regex filters to filter out unwanted logs
repo_name Repo name to clone by the docker. Example: newrelic/infrastructure-agent.
ref Branch or TAG to be checked out in the docker container.

Support

New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:

Contribute

We encourage your contributions to improve Fargate Runner Action! Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.

If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at [email protected].

A note about vulnerabilities

As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.

If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.

If you would like to contribute to this project, review these guidelines.

To all contributors, we thank you! Without your contribution, this project would not be what it is today.

License

Fargate Runner Action is licensed under the Apache 2.0 License.

fargate-runner-action's People

Contributors

davsanchez avatar jsubirat avatar brushknight avatar rogercoll avatar rubenruizdegauna avatar cristianciutea avatar cliftondobrich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.