@pattform/api-kit 2.6.3 → 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.js +13 -0
- package/package.json +1 -1
package/dist/FormComponent.js
CHANGED
|
@@ -127,6 +127,19 @@ class FormComponent extends pulumi.ComponentResource {
|
|
|
127
127
|
provider: awsProvider,
|
|
128
128
|
parent: this,
|
|
129
129
|
});
|
|
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",
|
|
139
|
+
}, {
|
|
140
|
+
provider: awsProvider,
|
|
141
|
+
parent: this,
|
|
142
|
+
});
|
|
130
143
|
this.endpoint = this.functionUrl.functionUrl;
|
|
131
144
|
this.turnstileSiteKey = pulumi.output(turnstileSiteKey);
|
|
132
145
|
this.registerOutputs({
|