aws-auth

command module
v0.0.0-...-f1ac277 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

aws-auth

This sets up a Lambda function that executes with permission to list Chainguard repositories. This demonstrates configuration of an AWS assumable Chainguard identity, as well as calling the Chainguard API from a Lambda function.

The Terraform does everything:

  • builds the example app into an image using ko_build
  • deploys the app to a Lambda function
  • sets up a Chainguard Identity with permissions to list cgr.dev repos
  • allows the Lambda function to assume the Chainguard identity
  • hosts a public URL that can be invoked to list repos

Setup

aws sso login --profile my-profile
terraform init
terraform apply

This will prompt for a group ID, and show you the resources it will create, as well as a public URL you can visit.

When the resources are created, visiting the URL will list repos in the specified group.

The Lambda function has no AWS permissions, and can only view Chainguard images.

To tear down resources, run terraform destroy.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL