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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址