mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-13 06:00:33 -04:00
* provider/aws Add aws_vpc_endpoint_services data source. * Rename 'aws_vpc_endpoint_services' to 'aws_vpc_endpoint_service'.
1.2 KiB
1.2 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_vpc_endpoint_service | docs-aws-datasource-vpc-endpoint-service | Provides details about a specific AWS service that can be specified when creating a VPC endpoint. |
aws_vpc_endpoint_service
The VPC Endpoint Service data source allows access to a specific AWS service that can be specified when creating a VPC endpoint within the region configured in the provider.
Example Usage
# Declare the data source
data "aws_vpc_endpoint_service" "s3" {
service = "s3"
}
# Create a VPC
resource "aws_vpc" "foo" {
cidr_block = "10.0.0.0/16"
}
# Create a VPC endpoint
resource "aws_vpc_endpoint" "ep" {
vpc_id = "${aws_vpc.foo.id}"
service_name = "${data.aws_vpc_endpoint_service.s3.service_name}"
}
Argument Reference
The arguments of this data source act as filters for querying the available VPC endpoint services. The given filters must match exactly one VPC endpoint service whose data will be exported as attributes.
service- (Required) The common name of the AWS service (e.g.s3).
Attributes Reference
The following attributes are exported:
service_name- The service name of the AWS service that can be specified when creating a VPC endpoint.