<p>I have a aws <strong>EC2</strong> (EC2-A) and <strong>Amazon Managed Blockchain</strong> running in <strong>VPC (VPC-A)</strong></p>
<ul>
<li>This EC2-A instance has some files and certificates (required for executing transactions in the blockchain)</li>
<li>EC2-A has EBS storage which can be mounted on only one EC2 instance at one time.</li>
<li>Transactions can be only executed to the blockchain network from the EC2-A, since they're are in the same VPC-A.</li>
</ul>
<p>I have an aws <strong>EKS (Kubernetes cluster) running in VPC-B.</strong></p>
<p>How can I <em>access the files and certificates of EC2-A from a pod in my k8s cluster.</em> Also I have another <strong>pod</strong> which will be blockchain client <strong>executing transactions in the blockchain network, which is in VPC-A.</strong></p>
<p>Both these VPC-A and VPC-B are in the same aws account.</p>

Niraj Kumar
<p>Mount a folder/files on an EC2 instance to a pod running in EKS is not supported. For your use case, you can easily share folder/files using EFS if not S3. If you are only allow to do pod to EC2 communication, you need a way for these resources to reach each other either by public IP if not VPC peering. Then you can run sftp, scp... any kind of off the shelf file sharing software you knew best for file exchange.</p>
