aws_ram_resource_share
Retrieve information about a RAM Resource Share.
data "aws_ram_resource_share" "example" {
name = "example"
resource_owner = "SELF"
}
data "aws_ram_resource_share" "tag_filter" {
resource_owner = "SELF"
filter {
name = "NameOfTag"
values = ["exampleNameTagValue"]
}
}
This data source supports the following arguments:
name
- (Optional) Name of the resource share to retrieve.resource_owner
(Required) Owner of the resource share. Valid values are SELF
or OTHER-ACCOUNTS
.resource_share_status
(Optional) Specifies that you want to retrieve details of only those resource shares that have this status. Valid values are PENDING
, ACTIVE
, FAILED
, DELETING
, and DELETED
.filter
- (Optional) Filter used to scope the list e.g., by tags. See [related docs] (https://docs.aws.amazon.com/ram/latest/APIReference/API_TagFilter.html).
name
- (Required) Name of the tag key to filter on.values
- (Required) Value of the tag key.This data source exports the following attributes in addition to the arguments above:
arn
- ARN of the resource share.id
- ARN of the resource share.owning_account_id
- ID of the AWS account that owns the resource share.resource_arns
- A list of resource ARNs associated with the resource share.status
- Status of the resource share.tags
- Tags attached to the resource share.