Skip to content

Commit

Permalink
feat: ingestion/intake function (#87)
Browse files Browse the repository at this point in the history
Registers packages as the result of receiving notifications
from the discovery function via an SQS queue.

Fixes #4

Co-authored-by: NetaNir <[email protected]>
Co-authored-by: Automation <[email protected]>
  • Loading branch information
3 people authored Jun 17, 2021
1 parent e3f34df commit f18fe8d
Show file tree
Hide file tree
Showing 28 changed files with 2,209 additions and 1,028 deletions.
1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@ const glob = require('glob');
const { pascalCase } = require('pascal-case');
const { SourceCode, FileBase, JsonFile, JsiiProject, DependenciesUpgradeMechanism } = require('projen');

const cdkDeps = [
const runtimeDeps = [
'@aws-cdk/aws-certificatemanager',
'@aws-cdk/aws-cloudfront-origins',
'@aws-cdk/aws-cloudfront',
'@aws-cdk/aws-cloudwatch-actions',
'@aws-cdk/aws-cloudwatch',
'@aws-cdk/aws-events-targets',
'@aws-cdk/aws-events',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda-event-sources',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-logs',
'@aws-cdk/aws-route53-targets',
'@aws-cdk/aws-route53',
'@aws-cdk/aws-s3-deployment',
'@aws-cdk/aws-s3',
'@aws-cdk/aws-sqs',
'@aws-cdk/aws-sns',
'@aws-cdk/core',
'@aws-cdk/aws-sqs',
'@aws-cdk/cx-api',
'cdk-watchful',
'constructs',
];

const cdkAssert = '@aws-cdk/assert';
Expand All @@ -47,6 +48,7 @@ const project = new JsiiProject({

devDeps: [
cdkAssert,
'@jsii/spec',
'@types/aws-lambda',
'@types/fs-extra',
'@types/semver',
Expand All @@ -64,8 +66,8 @@ const project = new JsiiProject({
'nano',
],

deps: cdkDeps,
peerDeps: [...cdkDeps, 'constructs'],
deps: runtimeDeps,
peerDeps: [...runtimeDeps, 'constructs'],

minNodeVersion: '12.0.0',

Expand Down Expand Up @@ -113,7 +115,7 @@ const project = new JsiiProject({
},
autoApproveUpgrades: true,
depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
exclude: [...cdkDeps, cdkAssert, cdkCli],
exclude: [...runtimeDeps, cdkAssert, cdkCli],
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve'],
Expand All @@ -127,6 +129,7 @@ const project = new JsiiProject({

// Required while we vendor-in jsii-rosetta to a pre-release version
project.addDevDeps('jsii-rosetta@./vendor/jsii-rosetta.tgz');
project.addDevDeps('@jsii/spec@./vendor/jsii-spec.tgz');
project.addFields({ resolutions: { '@jsii/spec': './vendor/jsii-spec.tgz' } });

function addDevApp() {
Expand Down
11 changes: 10 additions & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Name|Description

Construct Hub.

__Implements__: [IConstruct](#constructs-iconstruct), [IConstruct](#aws-cdk-core-iconstruct), [IConstruct](#constructs-iconstruct), [IDependable](#aws-cdk-core-idependable)
__Implements__: [IConstruct](#constructs-iconstruct), [IConstruct](#aws-cdk-core-iconstruct), [IConstruct](#constructs-iconstruct), [IDependable](#aws-cdk-core-idependable), [IGrantable](#aws-cdk-aws-iam-igrantable)
__Extends__: [Construct](#aws-cdk-core-construct)

### Initializer
Expand All @@ -42,6 +42,15 @@ new ConstructHub(scope: Construct, id: string, props: ConstructHubProps)



### Properties


Name | Type | Description
-----|------|-------------
**grantPrincipal**🔹 | <code>[IPrincipal](#aws-cdk-aws-iam-iprincipal)</code> | The principal to grant permissions to.
**ingestionQueue**🔹 | <code>[IQueue](#aws-cdk-aws-sqs-iqueue)</code> | <span></span>



## struct AlarmActions 🔹 <a id="construct-hub-alarmactions"></a>

Expand Down
136 changes: 70 additions & 66 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f18fe8d

Please sign in to comment.