Created
March 31, 2023 05:16
-
-
Save devops-school/8ab16f07ff56e7ea29cc30e62e124521 to your computer and use it in GitHub Desktop.
Terraform Tutorials: Named Values – Filesystem and workspace info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| locals { | |
| # Define the path to the current working directory | |
| current_dir = path.cwd | |
| } | |
| resource "aws_s3_bucket" "example_bucket" { | |
| bucket = "example-bucket-${local.current_dir}" | |
| acl = "private" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment