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
16 changes: 8 additions & 8 deletions content/blog/go-generics-preview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ package main
import (
"encoding/json"

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down Expand Up @@ -225,8 +225,8 @@ package main
import (
"encoding/json"

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
)
Expand Down Expand Up @@ -298,7 +298,7 @@ The following example is an AWS Pulumi program which we'll migrate into the gene
package main

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand All @@ -321,7 +321,7 @@ func main() {
}
```

To start using the generics-based version of the S3 module from AWS, you need to change the import from `"https://github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"` to `"https://github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3"` (notice the `x` after `aws/`), then change input values to use `pulumix.Ptr` instead of `pulumi.String`.
To start using the generics-based version of the S3 module from AWS, you need to change the import from `"https://github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"` to `"https://github.com/pulumi/pulumi-aws/sdk/v7/go/aws/x/s3"` (notice the `x` after `aws/`), then change input values to use `pulumix.Ptr` instead of `pulumi.String`.

{{% notes type="info" %}}
Rather than passing values as `pulumi.String("foo")` and `pulumi.Int(42)`, with generics, you can simply use `pulumix.Val("foo")` and `pulumix.Val(42)`. Similarly, you can use the `pulumix.Ptr` function for pointer values.
Expand All @@ -331,7 +331,7 @@ Rather than passing values as `pulumi.String("foo")` and `pulumi.Int(42)`, with
package main

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/x/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
)
Expand All @@ -358,7 +358,7 @@ func main() {
You'll also need to update your `go.mod` to use the preview branch of the Pulumi AWS Go SDK that includes the `x` subpackage with generic APIs. Run the following:

```sh
go get github.com/pulumi/pulumi-aws/sdk/v6@generics
go get github.com/pulumi/pulumi-aws/sdk/v7@generics
go mod tidy
```

Expand Down
2 changes: 1 addition & 1 deletion content/blog/improved-refresh-destroy-experience/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ package main

import (
"github.com/org/config"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down
2 changes: 1 addition & 1 deletion content/blog/pulumi-aws-cloudcontrol-provider/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ package main

import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/lambda"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down
2 changes: 1 addition & 1 deletion content/blog/pulumi-components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ namespace MyComponents
package components

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down
6 changes: 3 additions & 3 deletions content/docs/iac/concepts/how-pulumi-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ content_bucket = s3.Bucket('content-bucket')
package main

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down Expand Up @@ -207,7 +207,7 @@ content_bucket = s3.Bucket('content-bucket')
package main

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down Expand Up @@ -331,7 +331,7 @@ app_bucket = s3.Bucket('app-bucket')
package main

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down
2 changes: 1 addition & 1 deletion content/docs/iac/get-started/aws/create-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pulumi.export('bucket_name', bucket.id)
package main

import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down