Assign a static IP to our instance so that you can access the website directly, learn how in this video.
- [Instructor] So we've got our instants setup … but it would be nice to be able to have just … a single IP address that we could kind of count … on so that if we needed to destroy the instants … and recreate it, we could still … have the same IP to get access to it. … This would also be useful, of course, … if you were setting up a DNS which … we're not really going to cover in this course … but is quite easy to do in Terraform. … Let me go back into our code … and I'll get down to the bottom of the file here … and I'm just going to create a new resource, … this is pretty simple. … Resource aws underscore eip … and that stands for elastic IP, … which is the aws name for a static IP. … The idea is that it's elastic because it can be reassigned. … And I'm just going to name it like everything else here, … prod web because the names are differentiated … by the resource type you don't … have to be concerned about name collisions. … And I'll put my opening and closing curly braces … and while I'm at why don't we just put in our tags …
- Setting up Terraform
- How Terraform works
- Core Terraform commands
- Leveraging style conventions to keep code readable
- Configuring security groups
- Adding load balancers
- Using variables in your code
Skill Level Beginner
1. First Steps with Terraform
2. Terraform in Action
3. Infrastructure as Code
4. Advanced Topics
Next steps3m 31s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.