aws_subnet_ids data source updated to not require vpc_id #18060
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
new-data-source
Introduces a new data source.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Community Note
Description
aws_subnet_ids data source modified so the vpc_id argument is not required. The DescribeSubnets API call does not require vpc_id to be specified. Use case is want to return all subnets (regardless of vpc_id) which match a filter condition, in this case OutpostArn=value. Then use those subnets arns in a policy to deny launching in any subnet which is not an located on an Outpost, thus implementing a preventative control to enforce data residency
New or Affected Resource(s)
References
The text was updated successfully, but these errors were encountered: