From 2af3c5a74cf72c5ea3ad8feed766f883eb0c4a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Diego=20Garc=C3=ADa?= Date: Mon, 9 Dec 2024 14:19:36 -0600 Subject: [PATCH 1/2] Update deploy-changes.md Ensure imports and variables match previous definitions for the Python examples. --- content/docs/iac/get-started/aws/deploy-changes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/iac/get-started/aws/deploy-changes.md b/content/docs/iac/get-started/aws/deploy-changes.md index bb48c2e93046..6034b408897e 100644 --- a/content/docs/iac/get-started/aws/deploy-changes.md +++ b/content/docs/iac/get-started/aws/deploy-changes.md @@ -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", }) From 4e4434270cdce0ea4486a48f629a82a52e4c4cf0 Mon Sep 17 00:00:00 2001 From: Troy Howard Date: Mon, 16 Dec 2024 11:21:16 -0800 Subject: [PATCH 2/2] make variable names consistent across languages/steps --- content/docs/iac/get-started/aws/deploy-changes.md | 8 ++++---- content/docs/iac/get-started/aws/modify-program.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/docs/iac/get-started/aws/deploy-changes.md b/content/docs/iac/get-started/aws/deploy-changes.md index 6034b408897e..07dfd2bda6a9 100644 --- a/content/docs/iac/get-started/aws/deploy-changes.md +++ b/content/docs/iac/get-started/aws/deploy-changes.md @@ -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", }, @@ -157,7 +157,7 @@ website = 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"), }, @@ -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", @@ -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()) diff --git a/content/docs/iac/get-started/aws/modify-program.md b/content/docs/iac/get-started/aws/modify-program.md index 1c02e280a329..762bfb385802 100644 --- a/content/docs/iac/get-started/aws/modify-program.md +++ b/content/docs/iac/get-started/aws/modify-program.md @@ -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 {