-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first run at managing sns-based rules alongside onetime
- remove autogenerated properties from static rule files - remove proeprties requiring ARNs (account IDs) from static rule files - require patch for CNM rules to prevent breaking Cumulus-managed fields (subscription id) - populate ARN fields during bulk update
- Loading branch information
Showing
5 changed files
with
145 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
to: "app/stacks/cumulus/resources/rules/<%= collectionName %>/v<%= collectionVersion %>/<%= collectionName %>___<%= collectionVersion %>_CNM.json" | ||
message: > | ||
hygen cnm-rule new | ||
--provider <%= provider %> | ||
--collection-name <%= collectionName %> | ||
--collection-version <%= collectionVersion %> | ||
--- | ||
{ | ||
"name": "<%= collectionName %>___<%= collectionVersion %>_CNM", | ||
"state": "ENABLED", | ||
"workflow": "CNMIngestAndPublishGranule", | ||
"provider": "<%= provider %>", | ||
"collection": { | ||
"name": "<%= collectionName %>", | ||
"version": "<%= collectionVersion %>" | ||
}, | ||
"rule": { | ||
"type": "sns" | ||
}, | ||
"meta": { | ||
"cnmResponseMethod": "sns" | ||
}, | ||
"tags": [ | ||
"cnm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// see types of prompts: | ||
// https://github.com/enquirer/enquirer/tree/master/examples | ||
// | ||
module.exports = [ | ||
{ | ||
type: 'input', | ||
name: 'provider', | ||
message: "Provider ID (example: maxar):" | ||
}, | ||
{ | ||
type: 'input', | ||
name: 'collectionName', | ||
message: "Collection name (example: WV03_MSI_L1B):" | ||
}, | ||
{ | ||
type: 'input', | ||
name: 'collectionVersion', | ||
message: "Collection version (example: 1):" | ||
} | ||
] |
19 changes: 19 additions & 0 deletions
19
app/stacks/cumulus/resources/rules/WV04_MSI_L1B/v1/WV04_MSI_L1B___1_CNM.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "WV04_MSI_L1B___1_CNM", | ||
"state": "ENABLED", | ||
"workflow": "CNMIngestAndPublishGranule", | ||
"provider": "cumulus", | ||
"collection": { | ||
"name": "WV04_MSI_L1B", | ||
"version": "1" | ||
}, | ||
"rule": { | ||
"type": "sns" | ||
}, | ||
"meta": { | ||
"cnmResponseMethod": "sns" | ||
}, | ||
"tags": [ | ||
"cnm" | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
app/stacks/cumulus/resources/rules/WV04_Pan_L1B/v1/WV04_Pan_L1B___1_CNM.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "WV04_Pan_L1B___1_CNM", | ||
"state": "ENABLED", | ||
"workflow": "CNMIngestAndPublishGranule", | ||
"provider": "cumulus", | ||
"collection": { | ||
"name": "WV04_Pan_L1B", | ||
"version": "1" | ||
}, | ||
"rule": { | ||
"type": "sns" | ||
}, | ||
"meta": { | ||
"cnmResponseMethod": "sns" | ||
}, | ||
"tags": [ | ||
"cnm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters