You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -49,6 +50,7 @@ This module creates following resources.
49
50
| <aname="input_region"></a> [region](#input\_region)| (Optional) The region in which to create the module resources. If not provided, the module resources will be created in the provider's configured region. |`string`|`null`| no |
50
51
| <aname="input_resource_group"></a> [resource\_group](#input\_resource\_group)| (Optional) A configurations of Resource Group for this module. `resource_group` as defined below.<br/> (Optional) `enabled` - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to `true`.<br/> (Optional) `name` - The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. If not provided, a name will be generated using the module name and instance name.<br/> (Optional) `description` - The description of Resource Group. Defaults to `Managed by Terraform.`. | <pre>object({<br/> enabled = optional(bool, true)<br/> name = optional(string, "")<br/> description = optional(string, "Managed by Terraform.")<br/> })</pre> |`{}`| no |
51
52
| <aname="input_revoke_rules_on_delete"></a> [revoke\_rules\_on\_delete](#input\_revoke\_rules\_on\_delete)| (Optional) Instruct Terraform to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself. This is normally not needed. |`bool`|`false`| no |
53
+
| <aname="input_shares"></a> [shares](#input\_shares)| (Optional) A list of resource shares via RAM (Resource Access Manager). | <pre>list(object({<br/> name = optional(string)<br/><br/> permissions = optional(set(string), ["AWSRAMDefaultPermissionsSecurityGroup"])<br/><br/> external_principals_allowed = optional(bool, false)<br/> principals = optional(set(string), [])<br/><br/> tags = optional(map(string), {})<br/> }))</pre> |`[]`| no |
52
54
| <aname="input_tags"></a> [tags](#input\_tags)| (Optional) A map of tags to add to all resources. |`map(string)`|`{}`| no |
53
55
| <aname="input_vpc_associations"></a> [vpc\_associations](#input\_vpc\_associations)| (Optional) A set of VPC IDs to associate with the security group. |`set(string)`|`[]`| no |
54
56
@@ -65,6 +67,7 @@ This module creates following resources.
65
67
| <aname="output_owner_id"></a> [owner\_id](#output\_owner\_id)| The ID of the AWS account that owns the security group. |
66
68
| <aname="output_region"></a> [region](#output\_region)| The AWS region this module resources resides in. |
67
69
| <aname="output_resource_group"></a> [resource\_group](#output\_resource\_group)| The resource group created to manage resources in this module. |
70
+
| <aname="output_sharing"></a> [sharing](#output\_sharing)| The configuration for sharing of the security group.<br/> `status` - An indication of whether the security group is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are `NOT_SHARED`, `SHARED_BY_ME` or `SHARED_WITH_ME`.<br/> `shares` - The list of resource shares via RAM (Resource Access Manager). |
68
71
| <aname="output_vpc_associations"></a> [vpc\_associations](#output\_vpc\_associations)| A set |
69
72
| <aname="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id)| The ID of the associated VPC. |
Copy file name to clipboardExpand all lines: modules/security-group/outputs.tf
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,3 +96,15 @@ output "resource_group" {
96
96
)
97
97
)
98
98
}
99
+
100
+
output"sharing" {
101
+
description=<<EOF
102
+
The configuration for sharing of the security group.
103
+
`status` - An indication of whether the security group is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are `NOT_SHARED`, `SHARED_BY_ME` or `SHARED_WITH_ME`.
104
+
`shares` - The list of resource shares via RAM (Resource Access Manager).
105
+
EOF
106
+
value={
107
+
status =length(module.share) >0?"SHARED_BY_ME":"NOT_SHARED"
0 commit comments