Skip to content

Commit

Permalink
Update deploy-changes.md (#13547)
Browse files Browse the repository at this point in the history
* Update deploy-changes.md

Ensure imports and variables match previous definitions for the Python examples.

* make variable names consistent across languages/steps

---------

Co-authored-by: Troy Howard <[email protected]>
  • Loading branch information
ldgarcia and thoward authored Dec 16, 2024
1 parent 8ae941c commit 5dcc832
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions content/docs/iac/get-started/aws/deploy-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Add a new `BucketWebsiteConfiguration` resource to make `index.html` the home pa

```typescript
const website = new aws.s3.BucketWebsiteConfigurationV2("website", {
bucket: myBucket.id,
bucket: bucket.id,
indexDocument: {
suffix: "index.html",
},
Expand All @@ -144,8 +144,8 @@ const website = new aws.s3.BucketWebsiteConfigurationV2("website", {
{{% choosable language python %}}

```python
website = aws.s3.BucketWebsiteConfigurationV2("website",
bucket=my_bucket.id,
website = s3.BucketWebsiteConfigurationV2("website",
bucket=bucket.id,
index_document={
"suffix": "index.html",
})
Expand All @@ -157,7 +157,7 @@ website = aws.s3.BucketWebsiteConfigurationV2("website",

```go
website, err := s3.NewBucketWebsiteConfigurationV2(ctx, "website", &s3.BucketWebsiteConfigurationV2Args{
Bucket: myBucket.ID(),
Bucket: bucket.ID(),
IndexDocument: &s3.BucketWebsiteConfigurationV2IndexDocumentArgs{
Suffix: pulumi.String("index.html"),
},
Expand All @@ -174,7 +174,7 @@ if err != nil {
```csharp
var website = new Aws.S3.BucketWebsiteConfigurationV2("website", new()
{
Bucket = myBucket.Id,
Bucket = bucket.Id,
IndexDocument = new Aws.S3.Inputs.BucketWebsiteConfigurationV2IndexDocumentArgs
{
Suffix = "index.html",
Expand All @@ -192,7 +192,7 @@ import com.pulumi.aws.s3.BucketWebsiteConfigurationV2Args;
import com.pulumi.aws.s3.inputs.BucketWebsiteConfigurationV2IndexDocumentArgs;

var website = new BucketWebsiteConfigurationV2("website", BucketWebsiteConafigurationV2Args.builder()
.bucket(myBucket.id())
.bucket(bucket.id())
.indexDocument(BucketWebsiteConfigurationV2IndexDocumentArgs.builder()
.suffix("index.html")
.build())
Expand Down
2 changes: 1 addition & 1 deletion content/docs/iac/get-started/aws/modify-program.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ In `main.go`, create the `BucketObject` right after creating the bucket itself:
```go
// Create an S3 Bucket object
_, err = s3.NewBucketObject(ctx, "index.html", &s3.BucketObjectArgs{
Bucket: bucket.ID(),
Bucket: bucket.ID(),
Source: pulumi.NewFileAsset("./index.html"),
})
if err != nil {
Expand Down

0 comments on commit 5dcc832

Please sign in to comment.