1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sources": [
10 {
11 "source": "hashicorp/aws",
12 "kind": "provider",
13 "constraint": "~> 5.0",
14 },
15 {
16 "source": "hashicorp/random",
17 "kind": "provider",
18 "constraint": "~> 3.6",
19 },
20 {
21 "source": "hashicorp/template",
22 "kind": "provider",
23 "constraint": ">= 2.0",
24 },
25 {
26 "source": "integrations/github",
27 "kind": "provider",
28 "constraint": "~> 5.0",
29 },
30 {
31 "source": "terraform-aws-modules/vpc/aws",
32 "kind": "module",
33 "constraint": "~> 5.0",
34 },
35 {
36 "source": "terraform-aws-modules/security-group/aws",
37 "kind": "module",
38 "constraint": "~> 5.1",
39 },
40 ],
41 "registry": "terraform",
42 "staleDays": 365,
43 "failOnDeprecated": True,
44 "failOnStale": False,
45 "failOnMajorBehind": 0,
46}
47
48
49run = client.actor("kingii98/terraform-and-opentofu-registry-deprecation-and-staleness-gate").call(run_input=run_input)
50
51
52print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
53for item in client.dataset(run.default_dataset_id).iterate_items():
54 print(item)
55
56