aws-codebuild-status_derive

Crates.ioaws-codebuild-status_derive
lib.rsaws-codebuild-status_derive
version0.3.0
sourcesrc
created_at2019-05-28 21:25:00.455348
updated_at2019-05-28 21:25:00.455348
descriptionAWS-Codebuild status in the terminal
homepagehttps://github.com/lholznagel/aws-codebuild-status
repositoryhttps://github.com/lholznagel/aws-codebuild-status
max_upload_size
id137574
size1,811
Lars Holznagel (lholznagel)

documentation

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

README

AWS-Codebuild-Status

Small rust terminal application that list 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:ListBuildsForProject",
            "Resource": "arn:aws:codebuild:REGION:ACCOUNT:project/*"
        },
        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "codebuild:ListProjects",
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor3",
            "Effect": "Allow",
            "Action": [
                "codecommit:ListBranches",
                "codecommit:GetBranch"
            ],
            "Resource": "arn:aws:codecommit:REGION:ACCOUNT:*"
        }
    ]
}

Usage

Before you can use it the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and optional AWS_REGION must be set as environment variable, as a file in ~/.aws/config or ~/.aws/credentials. As an alternative the IAM instance profile will also work.

Install it with cargo install aws-codebuild-status

It is now executable with aws-codebuild-status

Screenshot

screenshot

Commit count: 43

cargo fmt