How do I install .NET Framework 3.5 on an EC2 Windows instance that doesn't have internet access?
Last updated: 2019-04-10
I want to use .NET Framework 3.5 on my Amazon Elastic Compute Cloud (Amazon EC2) Windows instance, but my instance doesn't have internet access. When I try to install .NET Framework 3.5 using the Add Roles and Features wizard, I get an error similar to the following:
Do you need to specify an alternate source path? One or more installation selections are missing source files on the destination.
How do I install .NET Framework 3.5 on my EC2 Windows instance when my instance does not have internet access?
If your instance doesn’t have internet access, AWS provides public Amazon Elastic Block Store (Amazon EBS) snapshots that include these extra files.
Follow these steps:
- Find and attach the correct EBS volume for your instance using the EC2 console, Windows PowerShell, or the AWS Command Line Interface (AWS CLI). For instructions, see Adding Windows Components Using Installation Media.
- Bring the new volume online.
- Install .NET Framework 3.5 using the Add Roles and Features wizard, or using Windows PowerShell.
To confirm if you have successfully installed .NET Framework 3.5, see How to: Determine which .NET Framework versions are installed.