-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This is a temporary workflow to check whether AWS OIDC EKS access is working | ||
name: AWS development | ||
|
||
concurrency: awsdev-eks | ||
|
||
on: | ||
push: | ||
branches: | ||
- aws-curvenote | ||
|
||
# Global environment variables | ||
env: | ||
AWS_REGION: us-east-2 | ||
|
||
jobs: | ||
# In this dedicated job to deploy our staging environment we build and push | ||
# images that the jobs to deploy to the production environments depend on. | ||
awsdev-eks: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_CURVENOTE_ACCOUNT_ID }}:role/binderhub-github-oidc-mybinderorgdeploy | ||
aws-region: us-east-2 | ||
|
||
- name: Check EKS access | ||
run: | | ||
aws sts get-caller-identity | ||
aws eks update-kubeconfig --name binderhub | ||
kubectl get nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters