-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f09f42d
commit d4a683f
Showing
3 changed files
with
40 additions
and
9 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
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
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,28 @@ | ||
# Handler | ||
|
||
The `handler` is designed to be deployed as an AWS lambda to apply transformations to a task definition. | ||
|
||
## Build | ||
|
||
The `handler` uses `goreleaser` for builds and releases. The defintion can be found in `runtimes/cloudformation/.goreleaser.yml`. | ||
|
||
*Note* to build the FIPS variant, you need to have [zig](https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Package-Manager) installed. | ||
|
||
```bash | ||
$ cd runtimes/cloudformation | ||
$ GORELEASER_CURRENT_TAG=0.0.1 goreleaser build --skip=validate --clean | ||
... | ||
$ ls -R dist/ | ||
dist/: | ||
artifacts.json config.yaml handler metadata.json | ||
|
||
dist/handler: | ||
handler-fips-linux-amd64 handler-fips-linux-arm64 handler-linux-amd64 handler-linux-arm64 | ||
``` | ||
|
||
## Test | ||
|
||
```bash | ||
$ cd runtimes/cloudformation | ||
$ go test -race -mod=readonly ./... | ||
``` |