GithubHelp home page GithubHelp logo

kodycn / amazon-appmesh-virtual-service-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scribd/amazon-appmesh-virtual-service-action

0.0 0.0 0.0 3.01 MB

Amazon App Mesh Virtual Service Action for GitHub Actions

Home Page: https://github.com/scribd/amazon-appmesh-virtual-service-action

License: MIT License

JavaScript 100.00%

amazon-appmesh-virtual-service-action's Introduction

Amazon App Mesh Virtual Service Action for GitHub Actions

semantic-release

Creates an Amazon App Mesh Virtual Service

Table of Contents

Usage

Creating the resource

Creating the Virtual Service

Creating the service requires the name, mesh-name, and the spec at a minimum.

- name: App Mesh Virtual Service
  uses: scribd/amazon-appmesh-virtual-service-action@v1
  with:
    name: my-virtual-service
    mesh-name: my-mesh-name
    spec: |
      {
      "provider": {
          "virtualRouter": {
            "virtualRouterName": "my-virtual-router"
          }
      }
    tags: |
      [
        {
          "key": "tags-must",
          "value": "be-passed-in-as-a-json-string"
        },
        {
          "key": "this-is-because",
          "value": "GitHub Actions translates these values into Environment Variables"
        }
      ]

Deleting the resource

Deleting the service requires name, mesh-name, and action to be specified as delete. mesh-owner may be supplied if required. Any additional parameters will be ignored.

- name: App Mesh Virtual Service
  uses: scribd/amazon-appmesh-virtual-service-action@v1
  with:
    name: my-virtual-service
    mesh-name: my-mesh-name
    action: delete

See action.yml for the full documentation for this action's inputs and outputs.

Credentials and Region

This action relies on the default behavior of the AWS SDK for Javascript to determine AWS credentials and region. Use the aws-actions/configure-aws-credentials action to configure the GitHub Actions environment with environment variables containing AWS credentials and your desired region.

We recommend following Amazon IAM best practices for the AWS credentials used in GitHub Actions workflows, including:

  • Do not store credentials in your repository's code. You may use GitHub Actions secrets to store credentials and redact credentials from GitHub Actions workflow logs.
  • Create an individual IAM user with an access key for use in GitHub Actions workflows, preferably one per repository. Do not use the AWS account root user access key.
  • Grant least privilege to the credentials used in GitHub Actions workflows. Grant only the permissions required to perform the actions in your GitHub Actions workflows. See the Permissions section below for the permissions required by this action.
  • Rotate the credentials used in GitHub Actions workflows regularly.
  • Monitor the activity of the credentials used in GitHub Actions workflows.

Permissions

This action requires the following minimum set of permissions:

{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Sid":"DeployService",
      "Effect":"Allow",
      "Action":[
        "appmesh:DescribeVirtualService",
        "appmesh:DeleteService",
        "appmesh:CreateVirtualService"
      ],
      "Resource":[
        "arn:aws:appmesh:us-east-1:1234567890:mesh/my-mesh-name/virtualService/my-virtual-service.my-mesh.example.com"
      ]
    }
  ]
}

Troubleshooting

This action emits debug logs to help troubleshoot deployment failures. To see the debug logs, create a secret named ACTIONS_STEP_DEBUG with value true in your repository.

To run this action from your workstation, you should supply your environment variables with the env command, since BASH will (correctly) refuse to set environment variables with dashes in them.

If submitting an issue, please include output styled after the following example, it'll help greatly! Don't forget to redact any sensitive data from your submission.

See this example:

env 'ACTIONS_STEP_DEBUG=true' "GITHUB_WORKSPACE=$(pwd)" 'AWS_REGION=us-east-1' 'INPUT_SPEC={"a": "b", "c": [{"d": "e"}]}' 'INPUT_MESH-NAME=example-mesh' 'INPUT_NAME=my-service' 'INPUT_TAGS=[{"Key": "hello", "Value": "world"}]' node  index.js

Development

Releases are cut using semantic-release.

Please write commit messages following Angular commit guidelines

amazon-appmesh-virtual-service-action's People

Contributors

dependabot[bot] avatar jim80net avatar semantic-release-bot 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.