old-iam-finder

command module
v0.0.0-...-94462ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2021 License: Unlicense Imports: 12 Imported by: 0

README

old-iam-finder

Find old AWS IAM and send message to slack channel

Getting Started

Prerequisites

to run as k8s job, it needs inject environment variables from k8s secret.

#secret.yaml
apiVersion: v1
kind: Secret
metadata:
  name: iam-finder-secret
  namespace: iam-finder
type: Opaque
stringData:
  AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
  AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
  SLACK_WEBHOOK_URL: $(SLACK_WEBHOOK_URL)
  EXPIRE_HOUR: $(EXPIRE_HOUR)

after complete all env variables, apply secrets to k8s

kubectl -f secret.yaml
Run the job

and apply job.yaml to k8s, it runs once and sends message to slack channel

kubectl -f job.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL