Тёмный

How to Pass Terraform Output as Variables to Ansible Using Terraform local_file Resource 

The_Sudo
Подписаться 4 тыс.
Просмотров 4,4 тыс.
50% 1

No, the access_key and secret_key in the video aren't real. How to pass the output from a terraform created object to ansible as a variable using Terraform's local_file resource.

Наука

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@sgtbash8004
@sgtbash8004 2 года назад
Nice video =) You could also 'upgrade' the creation of your local yaml file from a 'full heredoc within local_file' to a templatefile() implementation and only pass through the variables from your tf scripts. This doesnt result in anything different than what you have now, but enables you to store a template file in the dir of your final resultant directory (/vars) that would prompt future you, or other developers working in that project that the required file is templated from somwhere else - rather than it being an empty dir and scratching your head on where that comes from. Also prevents you from needing to store the entire vault config file within your tf scripts, potentially splitting out context to where it is better placed. As I say though - no real outcome difference, it will get you to the same place - just another option you could use. =)
@TheSudo
@TheSudo 2 года назад
Thanks for that tip Dan! There’s so many different ways of doing things. Someone is always teaching me something new every week! It’s awesome having 5 ways to a skin a cat!
@sgtbash8004
@sgtbash8004 2 года назад
@@TheSudo Ah yeah absolutely!!! I use both in my scripts for various different things - tend to opt for the templatefile version when I'm just modifying a small part of something like a pre-existing config file.
@user-xm2ch7gh8m
@user-xm2ch7gh8m 7 месяцев назад
Nice idea to integrate terraform with ansible. @The_Sudo I would rotate aws keys now... They're not safe anymore.
@TheSudo
@TheSudo 7 месяцев назад
Thanks! This video is pretty old. The keys were deactivated long ago.
Далее
Faites comme moi
00:14
Просмотров 1,8 млн
Сколько стоят роды мечты?
00:59
Просмотров 339 тыс.
Батя всех бургеров на 7000 ккал!
00:55
Куда пропали ЗДРАЙВЕРЫ?
11:38
Просмотров 301 тыс.
Learn how to use Terraform variables
9:39
Просмотров 24 тыс.
Why You NEED To Learn Terraform | Practical Tutorial
27:33
Using templatefile in Terraform
21:43
Просмотров 12 тыс.
Never install locally
5:45
Просмотров 1,8 млн
Ansible vs. Terraform: What's the difference?
9:32
Просмотров 193 тыс.
Day 4 : Terraform Variables and Outputs Tutorial
22:56
Ansible and Terraform Together
9:34
Просмотров 6 тыс.
Output Values | Terraform Tutorial | #9
8:52
Просмотров 32 тыс.
Apple Event - September 9
1:38:50
Просмотров 25 млн
Red Magic Gaming Tablet Pro Immersive Unboxing
0:25
Просмотров 1,5 млн
Тараканы убили ПК за 200к
0:45
Просмотров 156 тыс.