iam-manager icon indicating copy to clipboard operation
iam-manager copied to clipboard

Create CFN template for CloudWatch Rule and Lambda

Open mnkg561 opened this issue 5 years ago • 0 comments

Is this a BUG REPORT or FEATURE REQUEST?: FEATURE REQUEST

What happened: For iam-manager role Lambda, we need a way to install Lambda as well as the Cloud Watch rule which triggers Lambda as part of CFN(Cloud Formation) Template.

Sample Event Rule:

{
  "source": [
    "aws.iam"
  ],
  "detail-type": [
    "AWS API Call via CloudTrail"
  ],
  "detail": {
    "eventSource": [
      "iam.amazonaws.com"
    ],
    "userIdentity": {
      "arn": [
        "arn:aws:sts::123456789012:assumed-role/k8s-iam-manager-role"
      ]
    }
  }

What you expected to happen: Lambda and Cloud Watch event rule must be created just using CFN template

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • iam-manager version
  • Kubernetes version :
$ kubectl version -o yaml

Other debugging information (if applicable):

- controller logs:

$ kubectl logs

mnkg561 avatar Feb 14 '20 07:02 mnkg561