-
Notifications
You must be signed in to change notification settings - Fork 1
/
api-to-s3.yaml
36 lines (32 loc) · 1013 Bytes
/
api-to-s3.yaml
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
36
id: api-to-s3
namespace: company.team
tasks:
- id: get_pokemon
type: io.kestra.plugin.core.http.Download
method: GET
uri: https://pokeapi.co/api/v2/pokemon/psyduck
- id: upload
type: io.kestra.plugin.aws.s3.Upload
bucket: kestraio
from: "{{ outputs.get_pokemon.uri }}"
key: psyduck.json
accessKeyId: "{{ secret('AWS_ACCESS_KEY_ID') }}"
secretKeyId: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
region: "{{ secret('AWS_DEFAULT_REGION') }}"
triggers:
- id: every_friday_afternoon
type: io.kestra.plugin.core.trigger.Schedule
timezone: Europe/Berlin
cron: 0 17 * * FRI
extend:
title: Extract data from an API and load it to S3 on schedule (every Friday
afternoon)
description: This flow extracts data from an HTTP API and loads it to S3 as a
JSON file on every Friday afternoon at 5pm.
tags:
- Ingest
- API
- S3
ee: false
demo: true
meta_description: This flow extracts data from an HTTP API and loads it to S3 as a JSON file.