This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3187 from hashicorp/kevin/lambda-function-url
feat(aws-lambda): add URL releaser component
- Loading branch information
Showing
19 changed files
with
1,052 additions
and
30 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,3 @@ | ||
```release-note:feature | ||
plugin/lambda-function-url: Adds a new plugin and `releaser` component. This leverages Lambda URLs. | ||
``` |
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,12 @@ | ||
package function_url | ||
|
||
import ( | ||
sdk "github.com/hashicorp/waypoint-plugin-sdk" | ||
) | ||
|
||
//go:generate protoc -I ../../../../.. -I ../../../../thirdparty/proto --go_out=../../../../.. waypoint/builtin/aws/lambda/function_url/plugin.proto | ||
|
||
// Options are the SDK options to use for instantiation for the plugin. | ||
var Options = []sdk.Option{ | ||
sdk.WithComponents(&Releaser{}), | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,30 @@ | ||
syntax = "proto3"; | ||
|
||
package function_url; | ||
|
||
option go_package = "waypoint/builtin/aws/lambda/function_url"; | ||
|
||
import "opaqueany/any.proto"; | ||
|
||
message Release { | ||
// The function's public url | ||
string url = 1; | ||
|
||
// The AWS region the function is deployed in | ||
string region = 2; | ||
|
||
// The ARN for the Lambda function itself. | ||
string func_arn = 3; | ||
|
||
// The ARN for the version of the Lambda function this deployment uses. | ||
string ver_arn = 4; | ||
|
||
opaqueany.Any resource_state = 5; | ||
} | ||
|
||
// Resource contains the internal resource states. | ||
message Resource { | ||
message FunctionUrl { | ||
string url = 1; | ||
} | ||
} |
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,7 @@ | ||
package function_url | ||
|
||
import "github.com/hashicorp/waypoint-plugin-sdk/component" | ||
|
||
func (r *Release) URL() string { return r.Url } | ||
|
||
var _ component.Release = (*Release)(nil) |
Oops, something went wrong.