aws-codebuild-status_server

Crates.ioaws-codebuild-status_server
lib.rsaws-codebuild-status_server
version0.6.0
sourcesrc
created_at2019-06-13 21:27:22.857932
updated_at2019-06-13 21:27:22.857932
descriptionAWS-Codebuild status in the terminal
homepagehttps://github.com/lholznagel/aws-codebuild-status
repositoryhttps://github.com/lholznagel/aws-codebuild-status
max_upload_size
id140963
size9,190
Lars Holznagel (lholznagel)

documentation

https://github.com/lholznagel/aws-codebuild-status

README

AWS-Codebuild-Status

Small rust terminal application that lists all AWS-Codebuild projects and their current status.

Preparation

  • Create a new IAM User
  • The following permissions are needed:
    • Replace REGION and ACCOUNT
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "codebuild:BatchGetProjects",
                "codebuild:BatchGetBuilds"
            ],
            "Resource": "arn:aws:codebuild:REGION:ACCOUNT:project/*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "codebuild:ListBuilds",
                "codebuild:ListProjects"
            ],
            "Resource": "*"
        }
    ]
}

Usage

Cli

  • Download the binary from the release page, you can choose between a statically and dynamically compiled version
  • Start it with ./aws-codebuild-status

Or

Install it with cargo install aws-codebuild-status

Provide AWS credentials

The recommended way is to use the aws-cli.

  • Run aws configure
  • Set the AWS Access Key ID and Aws Secret Access Key
  • The region should set to the region where all projects are located
    • if not, the default region from aws will be used
  • The output format needs to be json

As an alternative, the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY can be set.

The usage of instance profiles is also supported.

Server

  • Download the latest release from the release page, you can choose between a statically and dynamically compiled version
  • Start the server with ./aws-codebuild-status_server
  • Open a browser and navigate to localhost:8081, it will return a static webpage

Screenshots

Terminal

screenshot

Webpage

screenshot

Commit count: 43

cargo fmt