Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy-changes.md #13547

Merged
merged 2 commits into from
Dec 16, 2024
Merged
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
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