Skip to content

Commit

Permalink
Move AWS examples to go modules (pulumi#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBoyle committed Mar 30, 2020
1 parent b95e810 commit bf2e9eb
Show file tree
Hide file tree
Showing 21 changed files with 1,463 additions and 845 deletions.
595 changes: 0 additions & 595 deletions aws-go-fargate/Gopkg.lock

This file was deleted.

38 changes: 0 additions & 38 deletions aws-go-fargate/Gopkg.toml

This file was deleted.

18 changes: 0 additions & 18 deletions aws-go-fargate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ Next, to deploy the application and its infrastructure, follow these steps:
$ pulumi config set aws:region us-east-1 # any valid AWS region will work
```

3. Restore your Go dependencies. This example currently uses [Dep](https://github.com/golang/dep) to do so:

```bash
$ dep ensure
```

4. Compile your Go application:

```bash
$ go build .
```

5. Deploy everything with a single `pulumi up` command. This will show you a preview of changes first, which
includes all of the required AWS resources (clusters, services, and the like). Don't worry if it's more than
you expected -- this is one of the benefits of Pulumi, it configures everything so that so you don't need to!
Expand Down Expand Up @@ -119,12 +107,6 @@ Next, to deploy the application and its infrastructure, follow these steps:
+ DesiredCount: pulumi.Int(5),
```

Remember to rebuild the application:

```bash
$ go build .
```

Running `pulumi up` will show you the delta and then, after confirming, will deploy just those changes:

```bash
Expand Down
8 changes: 8 additions & 0 deletions aws-go-fargate/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/pulumi/examples/aws-go-fargate

go 1.13

require (
github.com/pulumi/pulumi-aws/sdk v1.28.0
github.com/pulumi/pulumi/sdk v1.13.1
)
282 changes: 282 additions & 0 deletions aws-go-fargate/go.sum

Large diffs are not rendered by default.

42 changes: 0 additions & 42 deletions aws-go-lambda-gateway/Gopkg.toml

This file was deleted.

6 changes: 0 additions & 6 deletions aws-go-lambda-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ To deploy your infrastructure, follow the below steps.

After cloning this repo, run these commands from the working directory:

1. Restore your Go dependencies. This example currently uses [Dep](https://github.com/golang/dep) to do so:

```bash
$ dep ensure
```

1. Build the handler:

- For developers on Linux and macOS:
Expand Down
9 changes: 9 additions & 0 deletions aws-go-lambda-gateway/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/pulumi/examples/aws-go-lambda-gateway

go 1.13

require (
github.com/aws/aws-lambda-go v1.15.0
github.com/pulumi/pulumi-aws/sdk v1.28.0
github.com/pulumi/pulumi/sdk v1.13.1
)
287 changes: 287 additions & 0 deletions aws-go-lambda-gateway/go.sum

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions aws-go-lambda/Gopkg.toml

This file was deleted.

6 changes: 0 additions & 6 deletions aws-go-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ This example creates a lambda that does a simple `ToUpper` on the string input a

After cloning this repo, run these commands from the working directory:

1. Restore your Go dependencies. This example currently uses [Dep](https://github.com/golang/dep) to do so:

```bash
$ dep ensure
```

1. Build the handler:

- For developers on Linux and macOS:
Expand Down
9 changes: 9 additions & 0 deletions aws-go-lambda/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/pulumi/examples/aws-go-lambda

go 1.13

require (
github.com/aws/aws-lambda-go v1.15.0
github.com/pulumi/pulumi-aws/sdk v1.28.0
github.com/pulumi/pulumi/sdk v1.13.1
)
Loading

0 comments on commit bf2e9eb

Please sign in to comment.