From the course: AWS Essential Training for Developers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Using the SDK to create a file within S3

Using the SDK to create a file within S3

- [Instructor] Let's use the AWS SDK, or Software Development Kit to interface with S3 from our source code on our server. Before we begin, write down the name of the S3 bucket that we just created since we'll reference this later within our code. In the EC2 console, click on your first running instance and click Connect. Under the EC2 instance Connect tab, make sure that the user you're connecting to is set as ubuntu, which is the default local user for this Ubuntu AMI. And then click on the Connect button. Included in the Exercise Files, you'll find a text file that includes all the terminal commands we're going to run, and it might be easier to pull this up and cut and paste the commands. Paste in the first command, which will install PHP on our server along with several other packages that'll help get the AWS SDK installed. Right-click inside of this session and click the paste as plain text option. Once you have…

Contents