How to Upload Files to Private or Public AWS EC2 Instances using Terraform

In this story, we will learn how to upload files to private or public AWS EC2 Instances using Terraform.

This solution will work for both Windows and Linux EC2 Instances.

Let's explore our proposed solution and the most common option (the Terraform File Provisioner).

Terraform File…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Guillermo Musumeci

Guillermo Musumeci


Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | ex-AWS | Entrepreneur | Book Author | Husband & Dad of ✌