Skip to content

Commit e00f52b

Browse files
learn-aws: Learn about setting up the AWS integration.
1 parent a8c9fc2 commit e00f52b

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

data/scorecards/learn-aws.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
tag: learn-aws
2+
name: Learn AWS
3+
description: |
4+
Cortex Learn series: learn about the Cortex AWS integration.
5+
draft: false
6+
notifications:
7+
enabled: false
8+
scoreDropNotificationsEnabled: false
9+
exemptions:
10+
enabled: false
11+
autoApprove: false
12+
evaluation:
13+
window: 168
14+
ladder:
15+
name: Default Ladder
16+
levels:
17+
- name: Incomplete
18+
rank: 1
19+
color: "#FF9E9E"
20+
- name: Completed
21+
rank: 2
22+
color: "#7CCB92"
23+
rules:
24+
- title: Learned
25+
expression: dependencies.out().any((dependency) => dependency.type == "AWS::S3::Bucket")
26+
identifier: a335adc6-3bac-381e-9147-e8403fb8c4df
27+
weight: 1
28+
level: Completed
29+
failureMessage: "# About\nThis scorecard rule will walk you through learning AWS\
30+
\ for Cortex.\n\n# Setup\n- Sign up for a [free tier AWS account](https://portal.aws.amazon.com/billing/signup?p=ft&c=hp&z=6&refid=78b916d7-7c94-4cab-98d9-0ce5e648dd5f).\n\
31+
\n- You will be prompted for a credit card. We recommend using a virtual credit\
32+
\ card service like privacy.com. Create a virtual credit card with a $1 total\
33+
\ spend limit. Amazon indicates they may put a temporary $1 hold on your account\
34+
\ to prove who you are.\n\n- Follow the Cortex [documentation](https://docs.cortex.io/docs/reference/integrations/aws)\
35+
\ for configuring the AWS integration.\n\n- Make sure you have enabled [automatic\
36+
\ import of AWS entities](https://docs.cortex.io/docs/reference/integrations/aws#enable-automatic-import-of-aws-entities).\
37+
\ Not required if you complete end up manually importing entities (details below),\
38+
\ but will be helpful for ongoing updates in your workspace.\n\n## Create an S3\
39+
\ bucket via the AWS console\n- Login to the AWS console. This should be a URL\
40+
\ of the form https://<account id>.signin.aws.amazon.com/console.\n\n- Search\
41+
\ for S3 in the search.\n\n- Click on S3 to go to the Simple Storage Service (S3)\
42+
\ page.\n\n- Click on the \"Create Bucket\" button.\n\n- Give the bucket a unique\
43+
\ name. The bucket name needs to be unique, so recommend a format like <firstName>-<lastName>-learn-cortex-bucket.\n\
44+
\n- Click on the add tag button.\n\n- Set key = service, value = learn-cortex.\n\
45+
\n- Optional: click on the add tag button again.\n\n- Set key = owner, value =\
46+
\ <x-cortex-tag for any team entity in your workspace>.\n\n# Task\n\n- AWS entities\
47+
\ are synced daily in Cortex, but you can force a manual sync.\n - Catalogs\
48+
\ -> All Entities -> Import Entities -> Import Discovered Entities -> AWS -> Sync\
49+
\ Entities.\n - Click on your S3 bucket.\n - Confirm Import\n- You should\
50+
\ end up with an AWS::S3::Bucket entity resembling the following entity YAML:\n\
51+
\ \n```\nopenapi: 3.0.1\ninfo:\n title: jeff-schnitter-learn-cortex\n x-cortex-tag:\
52+
\ jeff-schnitter-learn-cortex\n x-cortex-type: AWS::S3::Bucket\n x-cortex-infra:\n\
53+
\ aws:\n cloudControl:\n - type: AWS::S3::Bucket\n region:\
54+
\ us-east-1\n accountId: \"331409392944\"\n identifier: jeff-schnitter-learn-cortex\n\
55+
```\n\n- Outgoing dependencies are synced separately.\n- Navigate to the [relationship\
56+
\ graph](https://app.getcortexapp.com/admin/graph) -> 3 dots -> Sync dependencies.\n\
57+
- Navigate to the Learn Cortex entity\n- You should see an outgoing dependencies\
58+
\ for the Learn Cortex entity that references your S3 bucket.\n\n![Learn Cortex\
59+
\ entity](https://p-a6fkm3vd.t3.n0.cdn.zight.com/items/v1uzNDw6/57432f96-6ea8-40e0-a066-9c4d27086b94.jpg?source=viewer&v=cb5f1793e6e9308cbd5ac04233a3477c)\n\
60+
\n# CQL Rule\nThe CQL rule for this rule verifies that the \"Learn Cortex\" has\
61+
\ an outgoing dependency of type \"AWS::S3::Bucket\"."
62+
filter:
63+
kind: GENERIC
64+
types:
65+
include:
66+
- service
67+
groups:
68+
include:
69+
- learn-cortex

0 commit comments

Comments
 (0)