Skip to content

R72553 add cost explorer and infra data collector to gateway api v2 pr devel 2.x #2546

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

Open
wants to merge 5 commits into
base: devel-2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions roles/aws/aws_admin_tools/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,44 @@ aws_admin_tools:
resource: "*"
action:
- "wafv2:GetWebACL"
- name: "get_cost_explorer_data"
resource: api
type: GET
policies: []
inline_policies:
name: "get_cost_explorer_data"
resource: "*"
action:
- "lambda:InvokeFunction"
- "ce:GetCostAndUsage"
- name: "save_infra_data_to_s3"
resource: schedule
cron: "cron(0 6,12 ? * MON-FRI *)"
timeout: 300
policies: []
inline_policies:
name: "save_infra_data_to_s3"
resource: "*"
action:
- "logs:CreateLogGroup"
- "logs:CreateLogStream"
- "logs:PutLogEvents"
- "ec2:Describe*"
- "rds:Describe*"
- "elasticloadbalancing:Describe*"
- "cloudfront:ListDistributions"
- "s3:List*"
- "s3:Get*"
- "autoscaling:Describe*"
- "sts:GetCallerIdentity"
- "s3:PutObject"
- name: "get_infra_data_from_s3" # This is the bit that sets up the API Gateway to pull and share infra data over API. No Lambda function needed here though. How do we do this? See docs
resource: api
type: GET
policies: []
inline_policies:
name: "get_infra_data_from_s3"
resource: "*"
action:
- "lambda:InvokeFunction" # ??
- "ce:GetCostAndUsage" # ??
Loading