Coder Social home page Coder Social logo

gh-create-ecs-fargate-service's Introduction

Provision ECS Service

Description

This GitHub Action provisions an Amazon ECS service. It first attempts to update an existing service. If the service does not exist, it creates a new one. The action ensures that the specified ECS service is associated with the provided task definition, target group, subnets, security groups, and ECS cluster.

Inputs

Name Description Required Default
ecsServiceName The name of the ECS service.
taskDefArn The ARN of the task definition.
targetGroupArn The ARN of the target group.
subnetIds The IDs of the subnets.
securityGroups The IDs of the security groups.
ecsClusterArn The ARN of the ECS cluster.
containerName The name of the container.
containerPort The port of the container. 3000

Example Usage

jobs:
  provision-ecs-service:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Provision ECS Service
        id: ecs-service
        uses: caring/gh-create-ecs-fargate-service@v1
        with:
          ecsServiceName: 'my_service'
          taskDefArn: 'arn:aws:ecs:us-east-1:123456789012:task-definition/my-task:1'
          targetGroupArn: 'arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup/my-targets/73e2d6bc24d8a067'
          subnetIds: 'subnet-0e4a7ab5addd5b076,subnet-0a2b3c4d5e6f7g8h9'
          securityGroups: 'sg-0e2e6b4643b14a779,sg-0a1b2c3d4e5f6g7h8'
          ecsClusterArn: 'arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster'
          containerName: 'my_container'
          containerPort: '8080'

License

This project is licensed under the MIT License.

Author

Written by the DevOps Team.

gh-create-ecs-fargate-service's People

Contributors

saldave2905 avatar

Watchers

 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.