Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate AWS IAM Credential Report pipeline #80

Open
bob-bot opened this issue Nov 22, 2024 · 1 comment
Open

Generate AWS IAM Credential Report pipeline #80

bob-bot opened this issue Nov 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bob-bot
Copy link

bob-bot commented Nov 22, 2024

Is your feature request related to a problem? Please describe.
To get the latest details from the AWS IAM Credential Report, which Powerpipe dashboards like AWS CIS v4.0.0 rely on, you need to run the aws iam generate-credential-report CLI command ahead of time. Would be great for Flowpipe to have a pipeline to execute this command in the AWS Library Mod.

Describe the solution you'd like
pipelines/iam/generate_iam_credential_report.fp

something like:

pipeline "generate_iam_credential_report" {
  title       = "Generate IAM Credential Report"
  description = "Generates the IAM Credential Report."

  param "conn" {
    type        = connection.aws
    description = local.conn_param_description
    default     = connection.aws.default
  }

  step "container" "generate_iam_credential_report" {
    image = "public.ecr.aws/aws-cli/aws-cli"
    cmd = [
      "iam",
      "generate-credential-report"
    ]
    env = param.conn.env
  }

  output "status" {
    description = "A structure with status details about the credentials report generates."
    value       = jsondecode(step.container.generate_iam_credential_report.stdout)
  }
}

This will go a long way for folks to run a scheduled pipeline locally or in Pipes every x hours to generate the report behind the scenes.

@bob-bot bob-bot added the enhancement New feature or request label Nov 22, 2024
@misraved
Copy link
Contributor

Addressed in #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants