Small rust terminal application that list all AWS-Codebuild projects and their current status.
REGION
and ACCOUNT
json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "codebuild:BatchGetBuilds",
"Resource": "arn:aws:codebuild:REGION:ACCOUNT:project/*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "codebuild:ListBuilds",
"Resource": "*"
}
]
}
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