Skip to content

Commit

Permalink
chore: binary searching the C# issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Nov 21, 2023
1 parent b411f25 commit 3df8c60
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions examples/csharp/documentation/IteratorStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ public IteratorStack(Construct scope, string name) : base(scope, name)
});

// This would be TerraformIterator.fromDataSources for data_sources
TerraformIterator s3BucketsIterator = TerraformIterator.FromResources(s3Buckets);
TerraformAsset helpFile = new TerraformAsset(this, "help", new TerraformAssetConfig
{
Path = "./help"
});
new S3BucketObject(this, "object", new S3BucketObjectConfig
{
ForEach = s3BucketsIterator,
Bucket = s3BucketsIterator.GetString("id"),
Key = "help",
Source = helpFile.Path
});
// // DOCS_BLOCK_END:iterators-chain
// TerraformIterator s3BucketsIterator = TerraformIterator.FromResources(s3Buckets);
// TerraformAsset helpFile = new TerraformAsset(this, "help", new TerraformAssetConfig
// {
// Path = "./help"
// });
// new S3BucketObject(this, "object", new S3BucketObjectConfig
// {
// ForEach = s3BucketsIterator,
// Bucket = s3BucketsIterator.GetString("id"),
// Key = "help",
// Source = helpFile.Path
// });
// DOCS_BLOCK_END:iterators-chain
}
}
}

0 comments on commit 3df8c60

Please sign in to comment.