Terraform module to manage a resource share with AWS Resource Access Manager (RAM)
You can find example implementations of this module in the tests folder. Note that the terraform aws
provider configs for the tests require that you use a profiles with the names resource-owner
and
resource-member
. Also note that the cross_account
test requires 2 different AWS accounts.
Name | Version |
---|---|
terraform | >= 0.13 |
aws | >= 5.37.0 |
Name | Version |
---|---|
aws | >= 5.37.0 |
Name | Type |
---|
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | Name of the resource share | string |
n/a | yes |
allow_external_principals | Boolean indicating whether principals outside the AWS organization can be associated with the resource share | bool |
false |
no |
principals | List of principals to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN. | list(string) |
[] |
no |
resources | Schema list of resources to associate to the resource share | list(object({ |
[] |
no |
tags | Map of tags to assign to the resource share | map(string) |
{} |
no |
Name | Description |
---|---|
principal_associations | Object with the AWS RAM principal associations resources |
resource_associations | Object with the AWS RAM resource associations resources |
resource_share | Object with the AWS RAM resource share resource |