diff --git a/pulumi/default-aws-infra/README.md b/pulumi/default-aws-infra/README.md index e1a7f7d..f16bcda 100644 --- a/pulumi/default-aws-infra/README.md +++ b/pulumi/default-aws-infra/README.md @@ -6,9 +6,11 @@ This example uses [Go][link-1]. ## Contents -* **main.go**: This Go file contains all the necessary Pulumi code to launch an EC2 instance on your default AWS infrastructure. +* `go.mod`: This file contains dependencies used by this Go program. -* **README.md**: This file you're currently reading. +* `main.go`: This Go file contains all the necessary Pulumi code to launch an EC2 instance on your default AWS infrastructure. + +* `README.md`: This file you're currently reading. ## Instructions @@ -16,11 +18,13 @@ These instructions assume you've already installed and configured Pulumi and all 1. Start a new Pulumi project, configured for AWS and Go (you can use `pulumi new` for this step if you prefer). -2. Copy `main.go` from this directory into the directory for the new Pulumi project. +2. Copy `main.go` and `go.mod` from this directory into the directory for the new Pulumi project. -3. Edit `main.go` as outlined below in the section "Providing Your Own Information". +3. Run `go mod tidy` in the directory where you copied `main.go` and `go.mod`. -4. Once `main.go` has been appropriately customized for your specific environment, run `pulumi up` and follow the prompts. +4. Edit `main.go` as outlined below in the section "Providing Your Own Information". + +5. Once `main.go` has been appropriately customized for your specific environment, run `pulumi up` and follow the prompts. Enjoy! diff --git a/pulumi/default-aws-infra/go.mod b/pulumi/default-aws-infra/go.mod new file mode 100644 index 0000000..3235e5c --- /dev/null +++ b/pulumi/default-aws-infra/go.mod @@ -0,0 +1,65 @@ +module default-aws-infra + +go 1.18 + +require ( + github.com/pulumi/pulumi-aws/sdk/v5 v5.27.0 + github.com/pulumi/pulumi/sdk/v3 v3.51.0 +) + +require ( + github.com/Microsoft/go-winio v0.5.2 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect + github.com/acomagu/bufpipe v1.0.3 // indirect + github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect + github.com/blang/semver v3.5.1+incompatible // indirect + github.com/cheggaaa/pb v1.0.18 // indirect + github.com/djherbis/times v1.2.0 // indirect + github.com/emirpasic/gods v1.12.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/gofrs/uuid v3.3.0+incompatible // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect + github.com/golang/protobuf v1.4.2 // indirect + github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect + github.com/hashicorp/errwrap v1.0.0 // indirect + github.com/hashicorp/go-multierror v1.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/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect + github.com/mattn/go-runewidth v0.0.8 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-ps v1.0.0 // indirect + github.com/opentracing/basictracer-go v1.0.0 // indirect + github.com/opentracing/opentracing-go v1.1.0 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pkg/term v1.1.0 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + github.com/rogpeppe/go-internal v1.8.1 // indirect + github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 // indirect + github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect + github.com/sergi/go-diff v1.1.0 // indirect + github.com/spf13/cobra v1.4.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 // indirect + github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect + github.com/uber/jaeger-client-go v2.22.1+incompatible // indirect + github.com/uber/jaeger-lib v2.2.0+incompatible // indirect + github.com/xanzy/ssh-agent v0.3.2 // indirect + go.uber.org/atomic v1.6.0 // indirect + golang.org/x/crypto v0.0.0-20220824171710-5757bc0c5503 // indirect + golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect + golang.org/x/sys v0.0.0-20220823224334-20c2bfdbfe24 // indirect + golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect + golang.org/x/text v0.3.6 // indirect + google.golang.org/genproto v0.0.0-20200608115520-7c474a2e3482 // indirect + google.golang.org/grpc v1.29.1 // indirect + google.golang.org/protobuf v1.24.0 // indirect + gopkg.in/warnings.v0 v0.1.2 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + lukechampine.com/frand v1.4.2 // indirect + sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 // indirect +)