Creating a module in Terraform - Getting started with Terraform Modules (part 1)

preview_player
Показать описание
#terraform #devops #infrastructureascode
Once you start seeing patterns in your infrastructure that repeat, e.g. the creation of VPCs, it is time to look at abstracting them into reusable blocks. These are modules in Terraform. This session covers how to create a basic module, looks at defining the inputs (variables) and outputs to it. We then use the module to create our Amazon EC2 instance. The 2nd part of this session will show how to store your module in a git repo, and add versioning.

If you have any questions about this video, or suggestions for content I should cover next, please leave a comment, or reach out to me on social media, details are down below.

Pull up a 🪑and bring a ☕/ 🍵/ 🍸/ 🍺, this channel focusses on Cloud related tech, mostly AWS, with practical, hands-on guides. New videos posted weekly (soon). If you have questions / suggestions for content, please leave a comment on any of the videos.

AWS Technical Developer Advocate, focussing on DevOps ❤️, containers 📦 and a bit of security🔐. Opinions are mine.

COME CHAT:
Рекомендации по теме
Комментарии
Автор

Great work! Watching the whole list and learning a lot.

takione
Автор

I've just discovered you. I'm definitely here to stay. Thank you for the video.

Jambajakumba
Автор

awesome, this was really easy to follow and now I understand clearly. Thanks!

pscoriae
Автор

Excellent Tutorial :) learned a lot in a short time .. keep up the good work .

surekaka
Автор

Great Tutorial, thank you very much. You helped me a lot!

ickebinberliner
Автор

Cobus, thanks for this was as very clear explanation of modules as well as the best example of using the variables.tf file. Nice!

zvirtual
Автор

I am enyouying your video. It's very well explain and easy to understand. You make complex explanation to be easy.Ty

donskye
Автор

Could not have asked for more you nailed it man, kudos but could you do a video on the use of different functions in terraform. thanks for the effort so far

ayencoscolfield
Автор

Great content, I learned very about it and I´m studying more about because I have to build an infrastructure with 4 environments and 4 vpc´s. Thank you

gaspar
Автор

Wow! This is certainly the easiest explanation I've come across.
Thanks, man!

TilakVardhan
Автор

This was a great experience, Can you pls cover backend.

rodrigueawom
Автор

Thanks, this was really clear! Do you think you could also share the code through a repo?

ThePotassiumiodide
Автор

Thanks - could you do one for monitoring and alerting if someone creates/terminates some instance. I want to see some sample TF rules. Thanks!

Umarx
Автор

thanks for the video. I tried to find this example, I'd like to see the root and sub module files.

stevegrimes
Автор

Thank you for the video. I have a question, what if I wanted to spin up a new instance without destroying the first instance I created. How do I run the same terraform code to create a new instance without destroying the one it created previously and how do I repeat that for future instance creation ?

michaelduncan
Автор

if you needed to create more than one ec2 instance with different settings what would be the best way to do that? Would you create a second module with a different name?

wyattblake
Автор

Hi Cobus,
This is really simple and understandable. Although I have one question : we have 3 services created in our dev environment : S3, Elastic Search and RDS but I am not understanding that how do I create a module and which would benefit each service? Can you please help me with that.

pallavianand
Автор

Do you have any GitHub profile to fork the project? appreciate your videos!!!

amauryborgessouza
Автор

Surprised to know that the infra is created without AWS credentials. How are you authenticating terraform

saurabhgoreamazing
Автор

where can you find what can be used as outputs for a given resource?

arvinvitug