-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.12 KB
/
aws.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: AWS Resource Creation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
Deploy_CFT:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy CloudFormation stack
run: |
aws cloudformation deploy \
--stack-name MyEMRStack \
--template-file .github/workflows/MYcft2.yaml \
--capabilities CAPABILITY_IAM
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
EC2_KEY_PAIR_PATH: s3://requiredfiles2323/onekey.pem
- name: Start Crawler
run: |
aws glue start-crawler --name data-crawler
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}