Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@

shoes-aws is [myshoes](https://github.com/whywaita/myshoes) provider

## GitHub Workflow Labels
Labels from your workflow are passed through into shoes-aws. You will need to provide custom code to use those labels for your specific use cases.

### AMI Label
There is a dedicated myshoes label prefix for dynamically passing the AMI you want a workflow to use: `shoesami:`
This label value will take precedence over the env var value.

For instance, `shoesami:ami-0000000` would result in `ami-0000000` as the AMI of an EC2 instance.

## Setup

Please set environment values.

### For Testing
This project uses LocalStack which mocks AWS services
Comment thread
alfred-stokespace marked this conversation as resolved.

LocalStack has requirements about Auth - https://docs.localstack.cloud/references/credentials/
- specifically, `test` is a good option for the access key id when running unit tests
> AWS_ACCESS_KEY_ID=test
>
> AWS_SECRET_ACCESS_KEY=DOESNOTMATTER


### Required

- `AWS_RESOURCE_TYPE_MAPPING`
Expand Down
25 changes: 10 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.27.5
github.com/aws/aws-sdk-go-v2/service/ec2 v1.159.0
github.com/docker/go-connections v0.5.0
github.com/hashicorp/go-plugin v1.4.2
github.com/hashicorp/go-plugin v1.4.3
github.com/testcontainers/testcontainers-go v0.30.0
github.com/testcontainers/testcontainers-go/modules/localstack v0.30.0
github.com/whywaita/myshoes v1.9.0
github.com/whywaita/myshoes v1.15.14
google.golang.org/grpc v1.62.0
)

Expand All @@ -32,13 +32,11 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.2 // indirect
github.com/aws/smithy-go v1.20.2 // indirect
github.com/bradleyfalzon/ghinstallation v1.1.1 // indirect
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/containerd/containerd v1.7.13 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/cpuguy83/dockercfg v0.3.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/docker/docker v25.0.5+incompatible // indirect
github.com/docker/go-units v0.5.0 // indirect
Expand All @@ -47,25 +45,21 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.0.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-github/v29 v29.0.2 // indirect
github.com/google/go-github/v35 v35.2.0 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/google/go-github/v41 v41.0.0 // indirect
github.com/google/go-github/v47 v47.1.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/go-hclog v0.14.1 // indirect
github.com/hashicorp/go-version v1.4.0 // indirect
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.17.7 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
github.com/lestrrat-go/httpcc v1.0.1 // indirect
github.com/lestrrat-go/iter v1.0.2 // indirect
github.com/lestrrat-go/jwx v1.2.28 // indirect
github.com/lestrrat-go/option v1.0.1 // indirect
github.com/lufia/plan9stats v0.0.0-20240226150601-1dcf7310316a // indirect
github.com/m4ns0ur/httpcache v0.0.0-20200426190423-1040e2e8823f // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
Expand All @@ -78,6 +72,7 @@ require (
github.com/oklog/run v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
Expand Down
Loading