hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[New Data Source]: aws_ram_resource_shares #39419

Open timecast opened 2 months ago

timecast commented 2 months ago

Description

data.aws_ram_resource_share currently only support getting a single resource, but the AWS API supports to get multiple/all resources

Requested Resource(s) and/or Data Source(s)

aws_ram_resource_shares

Potential Terraform Configuration

data "aws_ram_resource_share" "all" {
    resourceOwner='SELF'|'OTHER-ACCOUNTS',
    principal='string',
    resourceType='string',
    resourceArns=[
        'string',
    ],
    resourceShareArns=[
        'string',
    ],
    resourceRegionScope='ALL'|'REGIONAL'|'GLOBAL'
}

References

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ram/client/list_resources.html

Would you like to implement a fix?

None

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue