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

Remove AWS CLI install from AWS workflows #1967

Merged
merged 5 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
7 changes: 2 additions & 5 deletions .github/workflows/purge-aws-eks-clusters.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Purge AWS EKS Clusters

on:
workflow_dispatch:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is very useful addition. Thanks!

# Allows manual triggering of the workflow
schedule:
# Runs every day at 7 AM
- cron: "0 7 * * *"
Expand All @@ -17,11 +19,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install AWS CLI
run: |
sudo apt-get update
sudo apt-get install -y awscli

- name: Install eksctl
run: |
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/purge-aws-rds-snapshots.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Purge AWS RDS DBInstance snapshots
on:
workflow_dispatch:
# Allows manual triggering of the workflow
schedule:
# Runs at 00:30 and 12:30
- cron: "30 0,12 * * *"
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/purge-aws-test-resources.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Purge AWS Test Resources

on:
workflow_dispatch:
# Allows manual triggering of the workflow
schedule:
# Runs every day at 5 AM
- cron: "0 5 * * *"
Expand All @@ -17,11 +19,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install AWS CLI
run: |
sudo apt-get update
sudo apt-get install -y awscli

- name: Login to AWS
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -35,6 +32,6 @@ jobs:
- name: Create GitHub issue on failure
if: failure() && github.event_name == 'schedule'
run: |
gh issue create --title "Purge Purge AWS Test Resources workflow failed" \
gh issue create --title "Purge AWS Test Resources workflow failed" \
--body "Test failed on ${{ github.repository }}. See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details." \
--repo ${{ github.repository }}
Loading