File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ This module creates following resources.
2727
2828| Name | Version |
2929| ------| ---------|
30- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | 6.18 .0 |
30+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | 6.20 .0 |
3131
3232## Modules
3333
3434| Name | Source | Version |
3535| ------| --------| ---------|
3636| <a name =" module_resource_group " ></a > [ resource\_ group] ( #module\_ resource\_ group ) | tedilabs/misc/aws//modules/resource-group | ~ > 0.12.0 |
37- | <a name =" module_share " ></a > [ share] ( #module\_ share ) | tedilabs/organization/aws//modules/ram-share | ~ > 0.4 .0 |
37+ | <a name =" module_share " ></a > [ share] ( #module\_ share ) | tedilabs/organization/aws//modules/ram-share | ~ > 0.5 .0 |
3838
3939## Resources
4040
Original file line number Diff line number Diff line change 1+ locals {
2+ ram_share_name_prefix = join (" ." , [
3+ " vpc" ,
4+ " subnet-group" ,
5+ replace (var. name , " /[^a-zA-Z0-9_\\ .-]/" , " -" ),
6+ ])
7+ }
8+
9+
110# ##################################################
211# Resource Sharing by RAM (Resource Access Manager)
312# ##################################################
413
514module "share" {
615 source = " tedilabs/organization/aws//modules/ram-share"
7- version = " ~> 0.4 .0"
16+ version = " ~> 0.5 .0"
817
918 for_each = {
1019 for share in var . shares :
@@ -13,9 +22,12 @@ module "share" {
1322
1423 region = values (aws_subnet. this )[0 ]. region
1524
16- name = " vpc.subnet-group. ${ var . name } .${ each . key } "
25+ name = " ${ local . ram_share_name_prefix } .${ each . key } "
1726
18- resources = values (aws_subnet. this )[* ]. arn
27+ resources = {
28+ for name , subnet in aws_subnet . this :
29+ name = > subnet.arn
30+ }
1931
2032 permissions = each. value . permissions
2133
You can’t perform that action at this time.
0 commit comments