@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.
@@ -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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pattform/api-kit",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "Pulumi infra library for building and deploying an API",
5
5
  "author": "Pattform <contact@pattform.io>",
6
6
  "license": "SEE LICENSE IN LICENSE",