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

automating maintenance with Github actions #1792

Merged
merged 3 commits into from
Nov 23, 2020

Conversation

PatMyron
Copy link
Contributor

@PatMyron PatMyron commented Nov 20, 2020

Encrypted secrets for IAM actions currently required (set here):

paginator = client.get_paginator('get_parameters_by_path')

return client.get_paginator('get_products').paginate(


GitHub Actions usage is free for public repositories

Shortest interval you can run scheduled workflows is once every 5 minutes (takes while before schedules actions run at all in a new repo)

peter-evans/create-pull-request, might get stuck on peter-evans/create-pull-request#48

tested in my fork since I wasn't sure how to test in this repo without pushing

@@ -0,0 +1,28 @@
on:
schedule:
- cron: '*/15 * * * *'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems aggressive for how frequently these things change.

Copy link
Contributor Author

@PatMyron PatMyron Nov 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't change anything if nothing has changed, and it'll just update the same PR if anything has changed, so I considered running frequently and we could just merge it right before releases. Every 15 minutes seems to still be getting ThrottlingException when calling the GetProducts operation though so trying every 35 minutes now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might be able to use pricing files instead of the pricing API?

Copy link
Contributor Author

@PatMyron PatMyron Nov 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@PatMyron PatMyron Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miparnisari / anyone else receiving Run failed: .github/workflows/maintenance.yaml emails from their fork because they don't have secrets.AWS_ACCESS_KEY_ID/secrets.AWS_SECRET_ACCESS_KEY set: GitHub Actions notifications can be disabled (doesn't look more configurable yet unless using email rules), individual workflows can be disabled, or AWS credentials set (currently requires these IAM actions):

                "ssm:GetParametersByPath",
                "pricing:GetProducts"

@PatMyron PatMyron force-pushed the master branch 2 times, most recently from d26b664 to 3694cb3 Compare November 20, 2020 19:35
@kddejong
Copy link
Contributor

[
  "ssm:GetParametersByPath",
  "iam:ListPolicies",
  "pricing:GetProducts"
]

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

Successfully merging this pull request may close these issues.

3 participants