mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
this PR adds a step in the AWS state function that introduces a new ECS
fargate task that is responsible for destroying the ingress for the
particular instance.
I have tested the Go code locally, but not yet fully deployed into ECS.
What is does is run:
`aws eks update-kubeconfig` which is described as:
```
This command constructs a configuration with prepopulated server and
certificate authority data values for a specified cluster. You can
specify an IAM role ARN with the --role-arn option to use for authenti-
cation when you issue kubectl commands. Otherwise, the IAM entity in
your default AWS CLI or SDK credential chain is used.
```
I then write the output of this command to the tmp directory, then load
the Go SDK for Kubernetes telling it to read this kubeconfig file to
bootstrap which cluster we'll operate on.
relates to https://github.com/fleetdm/fleet/issues/8569
Then its a simple Ingress destroy command.
---------
Co-authored-by: zwinnerman-fleetdm <zwinnerman@fleetdm.com>
Co-authored-by: Zachary Winnerman <98712682+zwinnerman-fleetdm@users.noreply.github.com>
129 lines
6.1 KiB
Modula-2
129 lines
6.1 KiB
Modula-2
module github.com/fleetdm/fleet/infrastructure/demo/PreProvisioner/lambda
|
|
|
|
go 1.19
|
|
|
|
require (
|
|
github.com/aws/aws-lambda-go v1.29.0
|
|
github.com/aws/aws-sdk-go v1.43.37
|
|
github.com/fleetdm/fleet/v4 v4.28.0
|
|
github.com/google/uuid v1.3.0
|
|
github.com/jessevdk/go-flags v1.5.0
|
|
)
|
|
|
|
require (
|
|
github.com/AlekSi/pointer v1.2.0 // indirect
|
|
github.com/Masterminds/goutils v1.1.1 // indirect
|
|
github.com/Masterminds/semver v1.5.0 // indirect
|
|
github.com/Masterminds/semver/v3 v3.1.1 // indirect
|
|
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
|
|
github.com/Microsoft/go-winio v0.5.2 // indirect
|
|
github.com/ProtonMail/go-crypto v0.0.0-20210512092938-c05353c2d58c // indirect
|
|
github.com/acomagu/bufpipe v1.0.3 // indirect
|
|
github.com/andygrunwald/go-jira v1.16.0 // indirect
|
|
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb // indirect
|
|
github.com/cavaliercoder/go-cpio v0.0.0-20180626203310-925f9528c45e // indirect
|
|
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e // indirect
|
|
github.com/emirpasic/gods v1.12.0 // indirect
|
|
github.com/fatih/color v1.12.0 // indirect
|
|
github.com/fatih/structs v1.1.0 // indirect
|
|
github.com/fsnotify/fsnotify v1.5.4 // indirect
|
|
github.com/ghodss/yaml v1.0.0 // indirect
|
|
github.com/go-git/gcfg v1.5.0 // indirect
|
|
github.com/go-git/go-billy/v5 v5.3.1 // indirect
|
|
github.com/go-git/go-git/v5 v5.4.2 // indirect
|
|
github.com/go-kit/kit v0.12.0 // indirect
|
|
github.com/go-kit/log v0.2.0 // indirect
|
|
github.com/go-logfmt/logfmt v0.5.1 // indirect
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/gobwas/glob v0.2.3 // indirect
|
|
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
github.com/gomodule/oauth1 v0.2.0 // indirect
|
|
github.com/gomodule/redigo v1.8.9 // indirect
|
|
github.com/google/go-querystring v1.1.0 // indirect
|
|
github.com/google/rpmpack v0.0.0-20210518075352-dc539ef4f2ea // indirect
|
|
github.com/goreleaser/chglog v0.1.2 // indirect
|
|
github.com/goreleaser/fileglob v1.2.0 // indirect
|
|
github.com/goreleaser/nfpm/v2 v2.10.0 // indirect
|
|
github.com/gorilla/websocket v1.4.2 // indirect
|
|
github.com/groob/plist v0.0.0-20220217120414-63fa881b19a5 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
|
github.com/hashicorp/go-hclog v0.16.2 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/hashicorp/go-retryablehttp v0.6.8 // indirect
|
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
|
github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 // indirect
|
|
github.com/huandu/xstrings v1.3.2 // indirect
|
|
github.com/igm/sockjs-go/v3 v3.0.0 // indirect
|
|
github.com/imdario/mergo v0.3.12 // indirect
|
|
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
|
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/kevinburke/ssh_config v1.1.0 // indirect
|
|
github.com/kolide/kit v0.0.0-20191023141830-6312ecc11c23 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/magiconair/properties v1.8.5 // indirect
|
|
github.com/matryer/is v1.4.0 // indirect
|
|
github.com/mattn/go-colorable v0.1.11 // indirect
|
|
github.com/mattn/go-isatty v0.0.14 // indirect
|
|
github.com/micromdm/nanodep v0.1.0 // indirect
|
|
github.com/micromdm/nanomdm v0.3.0 // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/mitchellh/go-ps v1.0.0 // indirect
|
|
github.com/mitchellh/gon v0.2.3 // indirect
|
|
github.com/mitchellh/mapstructure v1.4.2 // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/nukosuke/go-zendesk v0.13.1 // indirect
|
|
github.com/oschwald/geoip2-golang v1.8.0 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.10.0 // indirect
|
|
github.com/pelletier/go-toml v1.9.3 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
github.com/rs/zerolog v1.20.0 // indirect
|
|
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
|
|
github.com/sergi/go-diff v1.2.0 // indirect
|
|
github.com/shirou/gopsutil/v3 v3.22.8 // indirect
|
|
github.com/smartystreets/assertions v1.0.0 // indirect
|
|
github.com/spf13/afero v1.6.0 // indirect
|
|
github.com/spf13/cast v1.3.1 // indirect
|
|
github.com/spf13/cobra v1.5.0 // indirect
|
|
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
github.com/spf13/viper v1.8.1 // indirect
|
|
github.com/stretchr/testify v1.8.0 // indirect
|
|
github.com/subosito/gotenv v1.2.0 // indirect
|
|
github.com/theupdateframework/go-tuf v0.5.0 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.10 // indirect
|
|
github.com/tklauser/numcpus v0.4.0 // indirect
|
|
github.com/trivago/tgo v1.0.7 // indirect
|
|
github.com/ulikunitz/xz v0.5.10 // indirect
|
|
github.com/xanzy/ssh-agent v0.3.1 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.2 // indirect
|
|
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
|
|
golang.org/x/crypto v0.1.0 // indirect
|
|
golang.org/x/net v0.7.0 // indirect
|
|
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
|
|
golang.org/x/sys v0.5.0 // indirect
|
|
golang.org/x/text v0.7.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
google.golang.org/protobuf v1.28.1 // indirect
|
|
gopkg.in/guregu/null.v3 v3.5.0 // indirect
|
|
gopkg.in/ini.v1 v1.62.0 // indirect
|
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
howett.net/plist v0.0.0-20181124034731-591f970eefbb // indirect
|
|
)
|
|
|
|
replace github.com/kolide/kit => github.com/zwass/kit v0.0.0-20210625184505-ec5b5c5cce9c
|
|
|
|
replace github.com/micromdm/nanomdm => github.com/fleetdm/nanomdm v0.3.1-0.20230117193224-130d63f1d4ac
|
|
|
|
replace github.com/micromdm/nanodep => github.com/fleetdm/nanodep v0.1.1-0.20221221202251-71b67ab1da24
|
|
|
|
replace github.com/micromdm/scep/v2 => github.com/fleetdm/scep/v2 v2.1.1-0.20220729212655-4f19f0a10a03
|