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.83k stars 9.19k forks source link

[New Data Source]: Kinesis Firehose source public IP subnets #36058

Open andyshinn opened 8 months ago

andyshinn commented 8 months ago

Description

I would like a data source to be able to get the source public IP subnets listed on https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-splunk-vpc for various types and regions (such as Splunk outbound in us-east-1). This would allow easier integration with things like WAF or security groups.

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

Potential Terraform Configuration

data "aws_kinesis_firehose_source_subnets" "splunk" {
  destination = "splunk"
  region      = "us-east-1" // Optional, defaulting to returning all regions?
}

References

The sources for access and subnets are described on https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-rs-vpc.

Would you like to implement a fix?

No

github-actions[bot] commented 8 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

ewbankkit commented 7 months ago

Probably best implemented via a provider function (Terraform 1.8+).