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

Trying github actions #28851

Merged
merged 156 commits into from
Oct 20, 2021
Merged

Trying github actions #28851

merged 156 commits into from
Oct 20, 2021

Conversation

alesapin
Copy link
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 10, 2021
@alesapin alesapin added the do not test disable testing on pull request label Sep 10, 2021
@alesapin
Copy link
Member Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2021

Command update: success

Branch has been successfully updated

@alesapin
Copy link
Member Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2021

Command update: success

Branch has been successfully updated

@alesapin
Copy link
Member Author

alesapin commented Sep 30, 2021

Ok, tons of copy-paste but prototype is ready. Useful links:

  1. CloudWatch custom metrics: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
  2. CloudWatch alarms: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ConsoleAlarms.html
  3. AutoScaling groups dynamic policies: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html
  4. Lambda from docker: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html
  5. EC2 launch templates https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html
  6. GitHub Actions self-hosted runners API: https://docs.github.com/en/rest/reference/actions#self-hosted-runners
  7. CloudWatch schedule lambda https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html
  8. Where to put secrets: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
  9. Launch parameters in System Manager: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html
  10. Configure credentials on EC2 instance: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-metadata.html
  11. Create AMI from snapshot: https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/tkv-create-ami-from-instance.html
  12. Custom termination for auto scaling groups: https://docs.aws.amazon.com/autoscaling/ec2/userguide/lambda-custom-termination-policy.html
  13. AWS docker registry (for lambda from docker): https://aws.amazon.com/ecr/?nc1=h_ls
  14. AWS billing page: https://console.aws.amazon.com/billing/home#/

Boto3:

  1. cloudwatch: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html
  2. ssm: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ssm.html
  3. secrets manager: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html

@alesapin
Copy link
Member Author

A lot of copypaste and manual work, but let's check how it works.

@alesapin alesapin merged commit 9e8dfdb into master Oct 20, 2021
@alesapin alesapin deleted the trying_actions branch October 20, 2021 09:55
@alesapin alesapin added pr-must-backport Pull request should be backported intentionally. Use this label with great care! and removed pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted pr-not-for-changelog This PR should not be mentioned in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants