Giter VIP home page Giter VIP logo

aws-copilot-github-action's Introduction

Hi there ๐Ÿ‘‹

aws-copilot-github-action's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-copilot-github-action's Issues

Unable to use deployment action

Hey,

Thanks for this action, it seems like it could be super useful!

However, using the deploy action leads to an infinite hang as the CLI tool waits for me to choose something!

image

I've worked around this by running the command directly but I think I must be missing something in how this action is supposed to be used!

Here's how I'm using it:

      - uses: ksivamuthu/[email protected]
        with:
          command: deploy
          app: ${{ github.event.repository.name }}
          env: integration
          force: true

Any help appreciated!

Hitting Github API rate limit.

Hi, Thank you for releasing this library!

I am hitting the rate limit with the GitHub API and I would like to implement authenticated requests to fix the problem.
Here is the output I am seeing:

> Run ksivamuthu/[email protected]
> Installing AWS Copilot...
> Error: API rate limit exceeded for 20.172.40.176. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

The code which is causing the error is here:

const http = new HttpClient('aws-copilot-release')
const response = await http.getJson(
'https://api.github.com/repos/aws/copilot-cli/releases/latest'
)

In the GitHub Actions CI environment, there should be a GITHUB_TOKEN environment variable which can be used to make authenticated requests.

https://docs.github.com/en/actions/security-guides/automatic-token-authentication

I will open a PR shortly.

Add version input

Is it possible to add a "version" input to let me specify the copilot version?

I have issues with 1.30. Thanks!

Add pipeline and/or service name for deploys

More of a new feature but the ability to specify a service name for a deploy or the ability to do pipeline deploys would be great! for a deploy by name it would just take a name arg like

with:
            command: deploy
            app: app
            env: test
            name: webserver

AWS Copilot 1.30.0 breaks this action

Hi,

This action by default will load the latest, as of today, Copilot (1.30.0) which now prompts you for whether you want to deploy your environment before deploying the app. (Which is a confusing concept to me, but that's whatever.)

Anyway, all of our builds now hang on ksivamuthu/aws-copilot-github-action because it's waiting for prompt.

Issue #193 would help work around this, but it looks like this is something the action will need to be prepared for in a general sense.

Maybe more importantly: for some reason I get no visibility into this step in my Github Actions UI until I cancel the run, at which point I can see that it was just sitting and waiting interminably for a Y/N input.

If there's any way you can easily make the action properly output everything it's doing, that would help future users! ๐Ÿ™

...Now off to complain to AWS, who not only broke people's automated builds but deploy process throws an error because I wrote bad YAML while following their own incorrect documentation. (Note the flip-flopping between security-group and security_group...)

Add new actions to extract resources details

Would be interested in adding an action to extract the cluster and task ID for a service?

Based on aws's response here, we can run copilot svc show --resources --json to extract the resources info. I can then reuse the output json to extract the cluster and task ID from the resources key with AWS::ECS::Service type in deploy the docker into ECS (without new version of the task) directly from github

No ability to use github env vars in manifest

As far as I can tell there is no way to use a github env var or secret inside the copilot manifest using this action.

This functionality is supported by copilot when using it directly.

Example manifest.yml:

image:
 build: Dockerfile
  port: 8080
  args:
    GIT_SSH_PRIVATE_KEY: ${env.GIT_SSH_PRIVATE_KEY}

This is essential for many use cases

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.