TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New Guides for Terraform Modules

49 pointsby dcuabout 5 years ago

2 comments

chucky_zabout 5 years ago
Anyone from Hashicorp -- y&#x27;all are gonna end me. Please put the best way to do things into your own docs. You have <a href="https:&#x2F;&#x2F;www.terraform.io&#x2F;docs&#x2F;providers&#x2F;aws&#x2F;d&#x2F;iam_policy_document.html" rel="nofollow">https:&#x2F;&#x2F;www.terraform.io&#x2F;docs&#x2F;providers&#x2F;aws&#x2F;d&#x2F;iam_policy_doc...</a> and can do<p><pre><code> data &quot;aws_iam_policy_document&quot; &quot;s3_bucket&quot; { version = &quot;2012-10-17&quot; statement { sid = &quot;PublicReadGetObject&quot; principals { type = &quot;*&quot; identifiers = [&quot;*&quot;] } actions = [ &quot;s3:GetObject&quot; ] resources = [ &quot;arn:aws:s3:::${var.bucket_name}&#x2F;*&quot; ] } } resource &quot;aws_s3_bucket&quot; &quot;s3_bucket&quot; { bucket = var.bucket_name acl = &quot;public-read&quot; policy = data.aws_iam_policy_document.s3_bucket.json website { index_document = &quot;index.html&quot; error_document = &quot;error.html&quot; } tags = var.tags }</code></pre>
评论 #22514332 未加载
评论 #22513683 未加载
评论 #22513934 未加载
laingcabout 5 years ago
Since HN threads often attract a bit of a negative vibe, may I take the opportunity to say to any Hashicorp employees reading this that I think your products are fantastic.<p>Terraform is particularly excellent, but everything you produce is carefully designed, well built, and reliable.<p>So great job, Hashicorp. Keep it up.
评论 #22515378 未加载
评论 #22516177 未加载