Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
fix: change version to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca committed Feb 23, 2022
1 parent 5b2fc60 commit 68254e2
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
As with other Go libraries, GoFormation can be installed with `go get`.

```
$ go get github.com/awslabs/goformation/v5
$ go get github.com/awslabs/goformation/v6
```

## Usage
Expand All @@ -46,8 +46,8 @@ import (
"strconv"
"time"

"github.com/awslabs/goformation/v5/cloudformation"
"github.com/awslabs/goformation/v5/cloudformation/sns"
"github.com/awslabs/goformation/v6/cloudformation"
"github.com/awslabs/goformation/v6/cloudformation/sns"
)

func main() {
Expand Down Expand Up @@ -159,7 +159,7 @@ package main
import (
"log"
"github.com/awslabs/goformation/v5"
"github.com/awslabs/goformation/v6"
)
func main() {
Expand Down
8 changes: 4 additions & 4 deletions example/go-to-yaml/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strconv"
"time"

"github.com/awslabs/goformation/v5/cloudformation"
"github.com/awslabs/goformation/v5/cloudformation/sns"
"github.com/awslabs/goformation/v6/cloudformation"
"github.com/awslabs/goformation/v6/cloudformation/sns"
)

func main() {
Expand All @@ -16,14 +16,14 @@ func main() {

// Create an Amazon SNS topic, with a unique name based off the current timestamp
template.Resources["MyTopic"] = &sns.Topic{
TopicName: "my-topic-" + strconv.FormatInt(time.Now().Unix(), 10),
TopicName: cloudformation.String("my-topic-" + strconv.FormatInt(time.Now().Unix(), 10)),
}

// Create a subscription, connected to our topic, that forwards notifications to an email address
template.Resources["MyTopicSubscription"] = &sns.Subscription{
TopicArn: cloudformation.Ref("MyTopic"),
Protocol: "email",
Endpoint: "some.email@example.com",
Endpoint: cloudformation.String("some.email@example.com"),
}

// Let's see the JSON
Expand Down
2 changes: 1 addition & 1 deletion example/yaml-to-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/awslabs/goformation/v5"
"github.com/awslabs/goformation/v6"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/awslabs/goformation/v5
module github.com/awslabs/goformation/v6

require (
github.com/onsi/ginkgo v1.16.5
Expand Down
4 changes: 2 additions & 2 deletions goformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io/ioutil"
"strings"

"github.com/awslabs/goformation/v5/cloudformation"
"github.com/awslabs/goformation/v5/intrinsics"
"github.com/awslabs/goformation/v6/cloudformation"
"github.com/awslabs/goformation/v6/intrinsics"
)

//go:generate generate/generate.sh
Expand Down
22 changes: 11 additions & 11 deletions goformation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import (

"github.com/sanathkr/yaml"

"github.com/awslabs/goformation/v5"
"github.com/awslabs/goformation/v5/cloudformation"
"github.com/awslabs/goformation/v5/cloudformation/ec2"
"github.com/awslabs/goformation/v5/cloudformation/global"
"github.com/awslabs/goformation/v5/cloudformation/lambda"
"github.com/awslabs/goformation/v5/cloudformation/policies"
"github.com/awslabs/goformation/v5/cloudformation/route53"
"github.com/awslabs/goformation/v5/cloudformation/s3"
"github.com/awslabs/goformation/v5/cloudformation/serverless"
"github.com/awslabs/goformation/v5/cloudformation/sns"
"github.com/awslabs/goformation/v5/intrinsics"
"github.com/awslabs/goformation/v6"
"github.com/awslabs/goformation/v6/cloudformation"
"github.com/awslabs/goformation/v6/cloudformation/ec2"
"github.com/awslabs/goformation/v6/cloudformation/global"
"github.com/awslabs/goformation/v6/cloudformation/lambda"
"github.com/awslabs/goformation/v6/cloudformation/policies"
"github.com/awslabs/goformation/v6/cloudformation/route53"
"github.com/awslabs/goformation/v6/cloudformation/s3"
"github.com/awslabs/goformation/v6/cloudformation/serverless"
"github.com/awslabs/goformation/v6/cloudformation/sns"
"github.com/awslabs/goformation/v6/intrinsics"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion intrinsics/intrinsics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"encoding/json"

. "github.com/awslabs/goformation/v5/intrinsics"
. "github.com/awslabs/goformation/v6/intrinsics"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down

0 comments on commit 68254e2

Please sign in to comment.