@pattform/api-kit 2.6.2 → 2.6.4
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/dist/FormComponent.d.ts +0 -1
- package/dist/FormComponent.js +9 -25
- package/package.json +1 -1
package/dist/FormComponent.d.ts
CHANGED
package/dist/FormComponent.js
CHANGED
|
@@ -127,31 +127,15 @@ class FormComponent extends pulumi.ComponentResource {
|
|
|
127
127
|
provider: awsProvider,
|
|
128
128
|
parent: this,
|
|
129
129
|
});
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}, {
|
|
140
|
-
provider: awsProvider,
|
|
141
|
-
parent: this,
|
|
142
|
-
});
|
|
143
|
-
new aws.cloudwatch.MetricAlarm(`${baseName}-errors-${env}`, {
|
|
144
|
-
namespace: "AWS/Lambda",
|
|
145
|
-
metricName: "Errors",
|
|
146
|
-
dimensions: { FunctionName: this.lambda.name },
|
|
147
|
-
statistic: "Sum",
|
|
148
|
-
period: 300,
|
|
149
|
-
evaluationPeriods: 1,
|
|
150
|
-
comparisonOperator: "GreaterThanOrEqualToThreshold",
|
|
151
|
-
threshold: 1,
|
|
152
|
-
treatMissingData: "notBreaching",
|
|
153
|
-
alarmDescription: `Form endpoint ${baseName} is returning errors`,
|
|
154
|
-
alarmActions: [alarmTopic.arn],
|
|
130
|
+
// A Function URL with AuthType NONE is still private until a
|
|
131
|
+
// resource-based policy grants public invoke. The AWS Console adds this
|
|
132
|
+
// automatically; created via IaC it must be declared explicitly, or
|
|
133
|
+
// every browser POST is rejected with 403 Forbidden.
|
|
134
|
+
new aws.lambda.Permission(`${baseName}-url-public-${env}`, {
|
|
135
|
+
action: "lambda:InvokeFunctionUrl",
|
|
136
|
+
function: this.lambda.name,
|
|
137
|
+
principal: "*",
|
|
138
|
+
functionUrlAuthType: "NONE",
|
|
155
139
|
}, {
|
|
156
140
|
provider: awsProvider,
|
|
157
141
|
parent: this,
|