|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/terraformcertified/
课程评论:没有评论
**课程总结:Terraform - 从零到认证专家** 本课程旨在帮助您掌握 Terraform 的各项功能,顺利通过 HashiCorp 认证的 Terraform Associate 考试。课程内容以在 AWS (Amazon Web Services) 上构建基础设施为核心,但也包含一个在 GCP (Google Cloud Platform) 上创建虚拟机和简单 Web 服务器的演示。此外,课程还将介绍如何利用 AI 辅助编写和调试 Terraform 代码。 **课程涵盖的主要主题:** * **Terraform 基础:** Terraform 的概念、优势、安装(Windows, Linux, Mac)和版本升级。 * **AWS 基础设施管理:** 与 AWS 凭证的设置、资源的创建、更新和销毁。 * **AI 辅助开发:** 使用 Cursor AI 编写 Terraform 代码,并查找和修复错误。 * **Web 服务器部署:** 创建带有外部静态文件或模板文件的简单 Web 服务器。 * **跨平台实践:** 在 GCP 上创建虚拟机和 Web 服务器的示例。 * **高级 Terraform 功能:** * 动态块 (Dynamic Blocks) * 生命周期管理 (Lifecycle) 和弹性 IP (Elastic IP) 以实现近乎零停机的 Web 服务器 * 管理资源依赖 (`depends_on`) * 输出执行结果 (`outputs`) * 使用 SSM 参数存储和 AWS Secrets Manager 管理敏感信息 * 使用数据源 (Data Sources) 获取信息,包括最新的 AMI ID * 部署高可用性、零停机的、支持蓝绿部署的网站 * **变量和局部变量:** 使用变量进行参数化配置,以及自动填充功能。 * **执行命令:** 使用 `local-exec` 和 `remote-exec` 执行本地和远程命令。 * **条件和循环:** 实现查找、条件判断和多种循环方式(`count`, `for_each`, `for..in`)。 * **多区域和多账户部署:** 在多个 AWS 区域和账户中创建资源。 * **远程状态管理:** 配置和使用 Terraform 的远程状态后端。 * **Terraform 模块:** 将代码转换为模块、使用模块、在 GitHub 上存储和使用模块,以及为多账户/多区域部署创建模块。 * **资源管理和重置:** 使用 `terraform taint` 和 `terraform apply -replace` 重建资源,以及 `terraform import` 管理现有资源(包括半自动导入)。 * **工作区:** 理解 Terraform 工作区的概念和使用场景。 * **代码重构和状态管理:** 使用 `terraform state` 命令进行代码重构和状态文件操作。 * **Terraform 命令详解:** `validate`, `show`, `output`, `console`, `apply -target` 等命令的使用。 * **日志和云平台:** Terraform 日志文件,以及 Terraform Cloud 和 Terraform Enterprise 的介绍。 * **环境和变量管理:** 为开发、暂存和生产环境组织 Terraform 文件夹结构,以及使用全局变量。 * **锁文件:** 理解 `*.terraform.lock.hcl` 文件以及 AWS S3 状态锁定机制。 * **考试准备:** 回顾认证考试内容,并提供注册建议。 * **奖励内容:** 复杂的嵌套循环问题解决方案,Alternative AWS Provider (AWSCC) 的介绍,以及从 Terraform 迁移到 OpenTofu 及其回迁的指南。 本课程全面覆盖了驱动 Terraform 发展的核心概念和实践,旨在帮助您成为一名自信的 Terraform 专业人士。
Welcome to Course: Terraform - From Zero to Certified ProfessionalCourse covering all features of Terraform required to pass HashiCorp Certified Terraform Associate Exam certification exam.Course is fully bases on building Infrastructure on AWS - Amazon Web Services, butI have one lesson to show how to work with GCP - Google Cloud Platform and provision VM and simple Web Server.We also will use AI to write code and find and fix issues in my code.Course Lessons:Welcome and IntroWhat is Terraform and Why you need itInstallation on WindowsInstallation on LinuxInstallation on MacUpgrade Terraform VersionInstallation of Visual Studio Code and Terraform PluginAWS Credentials Setup for TerraformCreate Resources on AWSUpdate Resources on AWSDestroy Resources on AWSInstallation and use of Cursor AI Code Editor and Terraform PluginFixing Error for EC2-Classic no new Security Groups can be created without referencing a VPCBootstrap simple WebServer Bootstrap simple WebServer with External Static fileBootstrap simple WebServer with External Template fileExample Working with Google Cloud Platform, create simple VM and WebServerDynamic BlocksAlmost Zero downtime WebServer with Lifecycle and Elastic IPManage dependency - depends_onShow execution results - outputsGenerate, Store, Retrieve Secrets - SSM Parameter StoreGenerate, Store, Retrieve Secrets - AWS Secrets ManagerUse Data Sources to fetch informationUse Data Sources to fetch latest AMI idDeploy Highly Available Web Site with Zero Downtime and Green/Blue DeploymentVariablesVariables with Auto FillingLocal VariablesExecute Local Commands - local-execExecute Remote Commands - remote-execLookup and ConditionsTerraform Loops - countTerraform Loops - for_eachTerraform Loops - for inCreate Resources in Multiply AWS RegionsCreate Resources in Multiply AWS Accounts and RegionsTerraform Remote StateTerraform Modules Part-1 - Convert your code into ModuleTerraform Modules Part-2 - Use ModulesTerraform Modules Part-3 - Use Modules in loops, store and use Modules in GitHubTerraform Module for Multiply AWS Accounts and RegionsBest way to recreate resource - terraform taint up to v0.15.1Best way to recreate resource - terraform apply -replace since v0.15.2How to manage existing resources - terraform importHow to Import existing resources semi-automatically with v1.5+Terraform Workspaces and when to use them - terraform workspaceRefactoring Terraform code, manipulation with State - terraform state - Part-1Refactoring Terraform code, manipulation with State - terraform state - Part-2Terraform validate, Terraform show, Terraform output, Terraform console, Terraform apply -targetTerraform LogsTerraform CloudTerraform EnterpriseTerraform folders Hierarchy for Dev, Staging, Prod environmentsHow to use Global VariablesLock file.terraform.lock.hclWhen to use and how works AWS S3 State Lock FileReview of HashiCorp Certified Associate Exam and how to RegisterBONUS - Complex problem solution using Loop inside Loop inside Loop inside LoopBONUS - Alternative AWS Provider - AWSCCBONUS - How to Switch or Migrate from Terraform to OpenTofu and back