Improved Variable Validation in Terraform 1.9

Поділитися
Вставка
  • Опубліковано 1 лип 2024
  • Variable validation blocks are great for verifying values for inputs, but until now they've had a huge limitation. You couldn't reference anything in the validation block aside from the variable value itself. Terraform 1.9 addes support for referencing any other object in the same module, including other variables, local, data sources, and resources.
    Let's see how it works! I'll cover:
    🌮 Variable validation syntax
    🌮 Referencing another variable value
    🌮 Referencing a data source
    Here are the links for everything I mentioned:
    🔗 Terraform 1.9 release notes: github.com/hashicorp/terrafor...
    🔗 Updated documentation: developer.hashicorp.com/terra...
    Thank you so much for watching! Subscribe if you think I’ve earned it. Hit the bell as well if you’re feeling swell.❤️&🌮
    ✅🔔 Subscribe ► nedinthecloud.com/SubscribeYT
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    🌮 Other videos to check out:
    📽️ Terraform Basics - Modules: • Terraform Basics: Modules
    📽️ Managing Multiple Environments with Terraform: • Managing Multiple Envi...
    📽️ Workload Identity with Terraform Cloud: • Using Workload Identit...
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    #terraform #hashicorp #devops #cloudengineer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ⭐ CONNECT WITH ME 🏃🦖
    🌐 Day Two Cloud: daytwocloud.io
    🌐 Chaos Lever: chaoslever.com
    🌐 Visit my Website ► nedinthecloud.com
    🗳 Pluralsight ► app.pluralsight.com/profile/a...
    🐙 Find the code at GitHub► github.com/ned1313
    🐧 Twitter ► / ned1313
    👨‍💼 LinkedIn► / ned-bellavance
    For collaboration or any queries: ned@nedinthecloud.com
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    🌮 About Me 🌮
    Ned is a curious human with a knack for creating entertaining and informative content. With over 20 years in the industry, Ned brings real-world experience to all his creative endeavours, whether that's pontificating on a podcast, delivering live instruction, writing certification guides, or producing technical training videos. He has been a helpdesk operator, systems administrator, cloud architect, and product manager. In his newest incarnation, Ned is the Founder of Ned in the Cloud LLC. As a one-man-tech juggernaut, he develops courses for Pluralsight, runs two podcasts (Day Two Cloud and Chaos Lever, and creates original content for technology vendors.
    Ned has been a Microsoft MVP since 2017 and a HashiCorp Ambassador since 2020, and he holds a bunch of industry certifications that have no bearing on anything beyond his exceptional ability to take exams and pass them. When not in front of the camera, keyboard, and microphone, you can find Ned running the scenic trails of Pennsylvania or rocking out to live music in his hometown of Philadelphia. Ned has three guiding principles: Embrace discomfort, Fail often, and Be kind.
  • Наука та технологія

КОМЕНТАРІ • 7

  • @salamibuilds
    @salamibuilds 5 днів тому

    Niiice!!! Enjoy your vacation 🏖️

  • @thebtm
    @thebtm 5 днів тому

    Awesome Video. thank you for it.
    Have a great vacation.

  • @G8KEEPER
    @G8KEEPER 5 днів тому

    Thanks Ned, enjoy your vacation.

  • @adamdaniel5766
    @adamdaniel5766 5 днів тому

    this is pretty cool thanks for the info!

  • @avivasl
    @avivasl 5 днів тому

    I am glad TF is making easier to test input variables. Using pre/postcondition unnatural feels unnatural. thx!

  • @mistwire
    @mistwire 5 днів тому

    Great explainer video

  • @mattias.engineer
    @mattias.engineer 5 днів тому

    You can actually refer to unknown resource attributes in your variable validation blocks. If you do, the resource is created first, then the validation happens. I don't know if it ever makes sense to do it though 🤔