How to Convert a Pulumi YAML File to Python Format
Key Takeaways
This video demonstrates how to convert a Pulumi YAML file to Python format using the `pulumi convert` command, inspecting the generated Python code, and updating the Pulumi configuration file.
Full Transcript
okay in this section we are going to see how we can convert a palumi yaml format file into palumi python format so the first step is you just go into palumi convert language python out you are mentioning the output folder so which language you want to convert to I'm choosing python so so that's the first step once off it's done you can see that uh the required packages are getting installed now the installation completed now we can see the python file which got created so here you can see the first step it's is getting creating a bucket and after that you can see The Binding is being created and the index object is being created so this is the python format so if you want to see what is the yal format you can still see yaml repo so this is the yaml format so it's a bucket is getting created and then this is the binding and the index object so this yaml got converted to this python file so then after that what you can do is clear the screen and then Source you can see Pi repo bin active that's activated if you want to see the main palumi file in the main folder you can see Catch palumi so here it says it's uh it's in the yaml format but we are going to change that to the python format so what we are going to do is you're going to change that to poo that's the python format now so I'm going to cat Plum so now you change that runtime to python you can see that there so now after doing this you just type pumi up and it's asking for the pass phrase I can just give pass phrase I'm giving a p phrase now so once after the PA phrase is given you can see it's asking whether you want to proceed further or not so I'm just going to go navigate to yes and then click enter and once after that is done you can see It'll check if the file already exist or not so yeah that's unchanged so you can see that means all those files are already there so if you want to uh uh destroy those you can just type palumi down and you enter the P phrase once I've already enter the P phrase you can go to confirm that it's s then you can see the progress that is getting deleted it's deleting The Binding the object and the index bucket yeah that's it that it took uh 18 seconds so that's how you convert a yaml formated palumi into a python format palumi and uh there different ways to destroy it so yeah thanks for watching
Original Description
Learn how to convert a Pulumi configuration file from YAML format to Python. In this step-by-step tutorial, we will go through:
- Using the `pulumi convert` command to convert YAML to Python
- Inspecting the generated Python code
- Activating the Python virtual environment
- Updating Pulumi.yaml to point to the new Python code
Commands used in this tutorial 👇
1. `pulumi convert --language python --out ./py-repo`
2. `cat py-repo/__main__.py`
3. `source py-repo/bin/activate`
Don't forget to subscribe and hit the notification bell for more cloud computing and DevOps tutorials!
#Pulumi #Python #YAMLtoPython #DevOps #CloudComputing
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Mervin Praison · Mervin Praison · 2 of 60
1
▶
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Build GCP Infra using Pulumi in YAML format
Mervin Praison
How to Convert a Pulumi YAML File to Python Format
Mervin Praison
Speed Up AWS EKS: A Complete Guide to Performance Tuning & Debugging!
Mervin Praison
Learn GCP GKE to AWS EKS Migration in Just 5 Minutes: Quick Guide
Mervin Praison
AWS & Kubernetes: The Definitive Guide to Data Persistence with PV and PVC
Mervin Praison
ChatGPT Voice Conversation RELEASED! It's AMAZING!! (Demo)
Mervin Praison
How to Install Mistral 7B in Minutes: Quick & Easy Guide! ✅
Mervin Praison
Code Llama Install Locally: 🐍💻 Elevate Your Python Skills!
Mervin Praison
Orca Mini: Your Ultimate Guide to Install and Test on Mac & Linux 💻
Mervin Praison
Quick & Easy Vicuna Setup on Mac and Linux 💻
Mervin Praison
Quick Guide: Llama2 Local Installation and ChatGPT with pip! Python🛠️
Mervin Praison
Query PDFs Like a Pro with Local GPT: Full Setup Guide! 📜
Mervin Praison
LM Studio: EASIEST way to Run Large Language Models Locally!
Mervin Praison
AMAZING ChatGPT Vision is OUT! 🤯 14+ Examples (Step-by-Step) FULL Tutorial
Mervin Praison
Unbelievable! Build ANY App Instantly with Smol AI! 😲🔥
Mervin Praison
Amazing! AutoGen Made Easy: A Step-by-Step Beginners Guide 📚
Mervin Praison
How to Set Up LoLLMS and Run LLMs Locally! 🚀 Step-by-Step Tutorial
Mervin Praison
GPT4All: INSANE Way to Run Large Language Models Locally! 😲 Step-By-Step Tutorial
Mervin Praison
Incredible AI-Powered NPCs in Unity Game Engine: Step by Step Tutorial!🤯
Mervin Praison
MemGPT 🧠 LLM as Operating System. It's INSANE! Step-by-Step Tutorial 🤯
Mervin Praison
Text Generation Web UI: MIND-BLOWING Way to Run LLM Locally! 🤯
Mervin Praison
Unlock the INSANE Power of OpenAI GPT-4 with C#/.NET! 😲
Mervin Praison
Integrate Langchain and Ollama for Local AI Power 🤯 Indeed POWERFUL!
Mervin Praison
ChatDev: INSANE Virtual AI Agents! Future of Software Development 😲
Mervin Praison
Query PDFs Using Mistral: Unlock INSANE Power! 🤯
Mervin Praison
AutoGen + Open-Source LLMs: UNBELIEVABLE! Step-by-Step Tutorial You Can't Miss! 🤯
Mervin Praison
AutoGen + Text Generation WebUI: Unbelievable 100% Local Private Setup 🤯
Mervin Praison
MemGPT: Amazing! External Context for LLM #ai #llm #memgpt #generativeai #mem #gpt #openai #chatgpt
Mervin Praison
GeniA: Kubernetes + AI for MIND-BLOWING Operational Efficiency! 🤯 FULL Tutorial
Mervin Praison
VertexAI Meets LangChain for Mind-Blowing AI Conversations! 😲 Step by Step Tutorial
Mervin Praison
Simplified ChatGPT API Setup on Node.js for Newbies! 😍 Step by Step Tutorial
Mervin Praison
Autogen: Ollama integration 🤯 Step by Step Tutorial. Mind-blowing!
Mervin Praison
LiteLLM: One-Function Call to ANY Large Language Model! 🤯 UNBELIEVABLE!
Mervin Praison
ChatGPT Chatbot in Less Time Than You Think! 🚀😎 Step-by-Step Tutorial
Mervin Praison
LiteLLM Chatbot: Build Your Own in MINUTES! INSANE! 🤖🔥
Mervin Praison
Create Chatbot: Turn ANY Open-Source LLM into a Conversation Pro! 🤖
Mervin Praison
Create Chatbot: Ollama Integration Made UNBELIEVABLY Easy! 🎉
Mervin Praison
LlamaIndex + ChatGPT: Ingest Data and Experience UNBELIEVABLE Query Results! 🌟
Mervin Praison
INSANE! OpenAgents: Automated Data Analysis with Kaggle 🤯
Mervin Praison
React.js LLM Agent for Next-Gen Coding using ChatGPT 🚀 Mind-Blowing 🤯
Mervin Praison
MemGPT + Any LLM 🚀 100% Local & Private Integration Unveiled! Unlimited Memory
Mervin Praison
MemGPT + AutoGen 🧠🤖 Unlimited Memory & Autonomous AI Agents! INSANE🤯
Mervin Praison
AutoGen + Google's Palm LLM & More! Revolutionary AI Integration 🚀
Mervin Praison
MemGPT & LM Studio Integration Revealed! 🔥 Next-Level AI
Mervin Praison
🚀 AutoLLM: Unlock the Power of 100+ Language Models! Step-by-Step Tutorial
Mervin Praison
AutoLLM & Gradio Integration You Won't Believe! 🤯 Mind-Blowing
Mervin Praison
AutoLLM & FastAPI Tutorial: Query 100+ Language Models! 😱
Mervin Praison
Quivr: LLM's Second Brain - Transforming Data Management & Advanced Query with AI! 🤯
Mervin Praison
AutoGen & MemGPT with Local LLM: A Complete Setup Tutorial! 🧠 AMAZING 🤯
Mervin Praison
LocalAI: Free, Open Source OpenAI Alternative 🚀 INSANE 🤯 Step-by-Step Tutorial
Mervin Praison
Yarn Mistral 7B 128k LARGE context window, Small size 🤯 INSANE 🚀 Setup Tutorial!
Mervin Praison
Zephyr-7B: The Small and Mighty LLM 🤯 Step by Step Tutorial! 📘
Mervin Praison
Promptfoo: How to Test Your LLM ? 🚀 VERY EASY!
Mervin Praison
Pydantic: How to Validate LLM Responses? 🚀 Quality Response. VERY EASY!!!!
Mervin Praison
Pydantic: FORCE Your AI to Respond Back in UPPERCASE! 🤯 Step-by-Step Tutorial 🔥
Mervin Praison
Pydantic: How to use LLM to convert unstructured data to structured data?
Mervin Praison
AutoGen Function Calling: INSANE 🚀 Custom Integrations! Step-by-Step Tutorial 🤯
Mervin Praison
OpenAI Assistants API + Python 🤖 How to get started? (FULL Tutorial) 🤯 INSANE
Mervin Praison
GPT-4 Vision API 🤯 INSANE Video Recognition Powers! Step-by-Step Tutorial 🚀
Mervin Praison
GPT-4 Vision API 🚀 The Future of Image Recognition! 🤯 Step-by-Step Tutorial
Mervin Praison
Related Reads
📰
📰
📰
📰
AI-Powered Change Logs: Automating Client Feedback for Small ArchViz Studios
Dev.to AI
Welcome to Day 6 of 100 Days of GenAI for DevOps!
Medium · DevOps
My AI Workflow for Turning Ideas Into Income (Templates Included)
Medium · AI
I Tested an AI Slop Detector — It Flagged My Own Writing
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI