- Newest
- Most votes
- Most comments
When working with shared VPC resources from a master account, creating and using VPC endpoints can indeed be a bit complex. In the scenario you've described, where you're trying to create a private link (VPC endpoint) to allow private traffic between your Logstash agent and Elastic SaaS service, there are a few important points to consider:
-
VPC endpoints are subnet-level resources and cannot be directly created by a participant (child) account in shared subnets. Only the VPC owner (master account) can create VPC endpoints.
-
However, if the VPC endpoint is created by the master account in the shared subnet, it will be available for use by all participant accounts that have access to that subnet.
-
You are correct in noting that VPC endpoints are not listed as a shareable resource in AWS Resource Access Manager (RAM). This is because the sharing of VPC endpoints is implicit when the subnet is shared.
-
When an EC2 instance is launched in a shared subnet by a participant account, it will have access to any VPC endpoints created in that subnet by the master account. The routing for the VPC endpoint is handled at the subnet level, so any resources within the subnet can utilize it.
-
You don't need to explicitly share the VPC endpoint or grant additional permissions for the EC2 instance in the child account to use it. As long as the instance is in the shared subnet where the VPC endpoint exists, it will be able to route traffic through that endpoint.
Given this information, if you've created the VPC endpoint in the master account within the shared subnet, your EC2 instance in the child account should be able to use it for private communication with the Elastic SaaS service. The network-level integration happens automatically due to the shared subnet architecture.
To ensure everything is working as expected, you may want to:
- Verify that the VPC endpoint is correctly configured in the master account.
- Check that the security groups and network ACLs allow the necessary traffic.
- Test the connection from your EC2 instance to confirm that traffic is indeed routing through the VPC endpoint.
If you encounter any issues, you may need to coordinate with the master account administrator to troubleshoot or make any necessary adjustments to the VPC endpoint configuration.
Sources
OpenSearch Service, Unable to create VPCe collection with a Shared Subnet | AWS re:Post
Mastering AWS VPC: A Comprehensive Guide to Building Secure and Scalable Networks | AWS re:Post
Relevant content
asked 2 months ago
