mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 21:01:57 +03:00
for and foreach demo
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
|
||||
resource "aws_ebs_volume" "example" {
|
||||
availability_zone = "eu-west-1a"
|
||||
size = 8
|
||||
|
||||
tags = {for k, v in merge({ Name = "Myvolume" }, var.project_tags): k => lower(v)}
|
||||
}
|
||||
Reference in New Issue
Block a user