@mapbox/cloudfriend 9.2.0-0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +8 -0
- package/coverage/clover.xml +598 -0
- package/coverage/coverage-final.json +32 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/cloudfriend/bin/build-template.js.html +130 -0
- package/coverage/lcov-report/cloudfriend/bin/index.html +131 -0
- package/coverage/lcov-report/cloudfriend/bin/validate-template.js.html +142 -0
- package/coverage/lcov-report/cloudfriend/index.html +116 -0
- package/coverage/lcov-report/cloudfriend/index.js.html +307 -0
- package/coverage/lcov-report/cloudfriend/lib/build.js.html +217 -0
- package/coverage/lcov-report/cloudfriend/lib/conditions.js.html +430 -0
- package/coverage/lcov-report/cloudfriend/lib/index.html +206 -0
- package/coverage/lcov-report/cloudfriend/lib/intrinsic.js.html +979 -0
- package/coverage/lcov-report/cloudfriend/lib/merge.js.html +478 -0
- package/coverage/lcov-report/cloudfriend/lib/pseudo.js.html +370 -0
- package/coverage/lcov-report/cloudfriend/lib/rules.js.html +349 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/cross-account-role.js.html +244 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/event-lambda.js.html +367 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-database.js.html +286 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-json-table.js.html +235 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-orc-table.js.html +226 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-parquet-table.js.html +268 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-presto-view.js.html +358 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-spark-view.js.html +241 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/glue-table.js.html +481 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/hookshot.js.html +1504 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/index.html +416 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/index.js.html +154 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/kinesis-firehose-base.js.html +418 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/lambda.js.html +832 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/log-subscription-lambda.js.html +310 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/queue-lambda.js.html +364 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/queue.js.html +619 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/role.js.html +382 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/s3-kinesis-firehose.js.html +568 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/scheduled-lambda.js.html +490 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/service-role.js.html +307 -0
- package/coverage/lcov-report/cloudfriend/lib/shortcuts/stream-lambda.js.html +493 -0
- package/coverage/lcov-report/cloudfriend/lib/validate.js.html +154 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +161 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +210 -0
- package/coverage/lcov.info +1240 -0
- package/jest.config.js +14 -0
- package/lib/shortcuts/api.md +1 -0
- package/lib/shortcuts/lambda.js +4 -2
- package/package.json +15 -13
- package/readme.md +1 -1
- package/test/bin.test.js +18 -14
- package/test/fixtures/shortcuts/cross-account-role-defaults.json +1 -1
- package/test/fixtures/shortcuts/cross-account-role-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/event-lambda-defaults.json +3 -1
- package/test/fixtures/shortcuts/event-lambda-full.json +3 -1
- package/test/fixtures/shortcuts/firehose-defaults.json +1 -1
- package/test/fixtures/shortcuts/firehose-with-stream.json +1 -1
- package/test/fixtures/shortcuts/glue-database-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-database-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-json-table-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-json-table-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-orc-table-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-orc-table-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-parquet-table-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-parquet-table-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-table-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-table-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-view-defaults.json +1 -1
- package/test/fixtures/shortcuts/glue-view-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/hookshot-github-secret-ref.json +8 -4
- package/test/fixtures/shortcuts/hookshot-github-secret-string.json +8 -4
- package/test/fixtures/shortcuts/hookshot-github.json +8 -4
- package/test/fixtures/shortcuts/hookshot-passthrough-access-log-format.json +8 -4
- package/test/fixtures/shortcuts/hookshot-passthrough-alarms.json +8 -4
- package/test/fixtures/shortcuts/hookshot-passthrough-enhanced-logging.json +8 -4
- package/test/fixtures/shortcuts/hookshot-passthrough-full-blown-logging.json +8 -4
- package/test/fixtures/shortcuts/hookshot-passthrough-logging.json +8 -4
- package/test/fixtures/shortcuts/hookshot-passthrough.json +8 -4
- package/test/fixtures/shortcuts/lambda-defaults.json +3 -1
- package/test/fixtures/shortcuts/lambda-docker.json +3 -1
- package/test/fixtures/shortcuts/lambda-full.json +3 -1
- package/test/fixtures/shortcuts/lambda-provided-role.json +3 -1
- package/test/fixtures/shortcuts/lambda-zipfile.json +3 -1
- package/test/fixtures/shortcuts/log-subscription-lambda-defaults.json +3 -1
- package/test/fixtures/shortcuts/log-subscription-lambda-no-defaults.json +3 -1
- package/test/fixtures/shortcuts/queue-defaults.json +1 -1
- package/test/fixtures/shortcuts/queue-external-topic-ref.json +1 -1
- package/test/fixtures/shortcuts/queue-external-topic.json +1 -1
- package/test/fixtures/shortcuts/queue-fifo-queuename.json +1 -1
- package/test/fixtures/shortcuts/queue-fifo.json +1 -1
- package/test/fixtures/shortcuts/queue-full.json +1 -1
- package/test/fixtures/shortcuts/queue-lambda-zero.json +3 -1
- package/test/fixtures/shortcuts/queue-lambda.json +3 -1
- package/test/fixtures/shortcuts/role-defaults.json +1 -1
- package/test/fixtures/shortcuts/role-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/scheduled-lambda-defaults.json +3 -1
- package/test/fixtures/shortcuts/scheduled-lambda-full.json +3 -1
- package/test/fixtures/shortcuts/service-role-defaults.json +1 -1
- package/test/fixtures/shortcuts/service-role-no-defaults.json +1 -1
- package/test/fixtures/shortcuts/service-role-no-url-suffix.json +1 -1
- package/test/fixtures/shortcuts/service-role-url-suffix-with-replacement.json +1 -1
- package/test/fixtures/shortcuts/service-role-url-suffix.json +1 -1
- package/test/fixtures/shortcuts/stream-lambda-defaults.json +3 -1
- package/test/fixtures/shortcuts/stream-lambda-no-defaults.json +3 -1
- package/test/index.test.js +383 -235
- package/test/shortcuts.test.js +1227 -1462
- package/.nyc_output/0030e99c-2d96-4ac6-a2b2-bffd93da01bc.json +0 -1
- package/.nyc_output/e1868cff-0dd0-46eb-866d-70c3b666dae8.json +0 -1
- package/.nyc_output/processinfo/0030e99c-2d96-4ac6-a2b2-bffd93da01bc.json +0 -1
- package/.nyc_output/processinfo/e1868cff-0dd0-46eb-866d-70c3b666dae8.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|
|
@@ -86,7 +86,9 @@
|
|
|
86
86
|
"DependsOn": "MyLambdaRole",
|
|
87
87
|
"DeletionPolicy": "Delete",
|
|
88
88
|
"Properties": {
|
|
89
|
-
"PolicyName": {
|
|
89
|
+
"PolicyName": {
|
|
90
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
91
|
+
},
|
|
90
92
|
"Roles": [
|
|
91
93
|
{
|
|
92
94
|
"Ref": "MyLambdaRole"
|
|
@@ -122,7 +122,9 @@
|
|
|
122
122
|
"DependsOn": "MyLambdaRole",
|
|
123
123
|
"DeletionPolicy": "Delete",
|
|
124
124
|
"Properties": {
|
|
125
|
-
"PolicyName": {
|
|
125
|
+
"PolicyName": {
|
|
126
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
127
|
+
},
|
|
126
128
|
"Roles": [
|
|
127
129
|
{
|
|
128
130
|
"Ref": "MyLambdaRole"
|
|
@@ -87,7 +87,9 @@
|
|
|
87
87
|
"Type": "AWS::IAM::Policy",
|
|
88
88
|
"DeletionPolicy": "Delete",
|
|
89
89
|
"Properties": {
|
|
90
|
-
"PolicyName": {
|
|
90
|
+
"PolicyName": {
|
|
91
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
92
|
+
},
|
|
91
93
|
"Roles": [
|
|
92
94
|
{
|
|
93
95
|
"Fn::Select": [
|
|
@@ -87,7 +87,9 @@
|
|
|
87
87
|
"DependsOn": "MyLambdaRole",
|
|
88
88
|
"DeletionPolicy": "Delete",
|
|
89
89
|
"Properties": {
|
|
90
|
-
"PolicyName": {
|
|
90
|
+
"PolicyName": {
|
|
91
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
92
|
+
},
|
|
91
93
|
"Roles": [
|
|
92
94
|
{
|
|
93
95
|
"Ref": "MyLambdaRole"
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|
|
@@ -89,7 +89,9 @@
|
|
|
89
89
|
"DependsOn": "MyLambdaRole",
|
|
90
90
|
"DeletionPolicy": "Delete",
|
|
91
91
|
"Properties": {
|
|
92
|
-
"PolicyName": {
|
|
92
|
+
"PolicyName": {
|
|
93
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
94
|
+
},
|
|
93
95
|
"Roles": [
|
|
94
96
|
{
|
|
95
97
|
"Ref": "MyLambdaRole"
|
|
@@ -89,7 +89,9 @@
|
|
|
89
89
|
"DependsOn": "MyLambdaRole",
|
|
90
90
|
"DeletionPolicy": "Delete",
|
|
91
91
|
"Properties": {
|
|
92
|
-
"PolicyName": {
|
|
92
|
+
"PolicyName": {
|
|
93
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
94
|
+
},
|
|
93
95
|
"Roles": [
|
|
94
96
|
{
|
|
95
97
|
"Ref": "MyLambdaRole"
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"DependsOn": "MyLambdaRole",
|
|
89
89
|
"DeletionPolicy": "Delete",
|
|
90
90
|
"Properties": {
|
|
91
|
-
"PolicyName": {
|
|
91
|
+
"PolicyName": {
|
|
92
|
+
"Fn::Sub": "${AWS::StackName}-MyLambda-lambda-log-access"
|
|
93
|
+
},
|
|
92
94
|
"Roles": [
|
|
93
95
|
{
|
|
94
96
|
"Ref": "MyLambdaRole"
|