Kickstart Terraform on GCP with Google Cloud Shell

OCT 24 2018?RILEY KARSON

Riley Karson is a software engineer at Google, where he works as a contributor to the Google Cloud Platform provider for Terraform. Outside of work, Riley loves board gaming and hiking.

HashiCorp Terraform?is a powerful open-source infrastructure automation tool for provisioning and managing infrastructure as code. Google has been collaborating with?HashiCorp?since 2013 to help customers who use Terraform and other HashiCorp tools make optimal use of?Google Cloud Platform?(GCP) services and features.

As both Terraform and GCP grew in popularity, we continued to integrate our tools more deeply to smooth the developer experience. But while there’s a long and growing list of?Terraform GCP provider resources, getting started with Terraform on GCP can take a few steps:

  • Install Terraform
  • Configure a GCP service account
  • Copy a config that (hopefully) worked from the documentation.

Today, we’re excited to show you a new and easy way to avoid this manual process using?Google Cloud Shell. With Cloud Shell, you get command-line access to your cloud resources directly from your browser, so you can easily manage projects and resources without having to install any tools on your system. Further, command-line tools such as Terraform and other utilities are automatically authenticated, so you can use them setup-free.

Video

You may notice several examples in the?GCP provider documentation?now have an “Open in Cloud Shell” button, letting you launch sample Terraform configurations with a single click. Click on the button to launch an interactive Cloud Shell session with the example loaded and Terraform ready to use. This way, you can use real, working Terraform configs in Cloud Shell and iterate on ideas before bringing them into your team’s infrastructure-as-code provisioning workflow.

In short, with this new integration with Cloud Shell, learning to use new GCP resources in Terraform is easier than ever:

  • Instantly get started learning infrastructure as code with Terraform on GCP—no experience required
  • Easily onboard new teammates directly from Terraform’s documentation

To get started with our virtual machine instance example below. Be sure to?follow us on Twitter, and to?open a GitHub issue?if you have any questions.

For more information about Terraform, please visit:?https://www.terraform.io

Are you interested in telling others your HashiCorp story or perhaps how HashiCorp products helped with that amazing thing you built? Let us know. Email your story or idea to?[email protected].

原文地址:http://blog.51cto.com/13883466/2310113

时间: 2024-08-29 07:56:53

Kickstart Terraform on GCP with Google Cloud Shell的相关文章

在Google Cloud platform上创建Kubernetes cluster并使用

登录Google Cloud platform,创建一个新的Kubernetes Cluster: 该集群的node个数选择为1,从Machine type下拉列表里选择CPU配置: 展开Advanced Edit,选择该Kubernetes集群安装所在的操作系统的镜像类型: 选择ubuntu,磁盘类型选择SSD: 点击Create,得到一个Kubernetes cluster: The images for these containers will be pulled from the pu

google cloud storage products

https://cloud.google.com/products/storage/ BigTable Cloud Bigtable 是 Google 面向大数据领域的 NoSQL 数据库服务.它也是为 Google 搜索.Analytics(分析).地图和 Gmail 等众多核心 Google 服务提供支撑的数据库. https://cloud.google.com/bigtable/docs/?_ga=2.253537231.-792515609.1538018833 Cloud Bigta

在Google Cloud platform上的Kubernetes集群部署HANA Express

在Google Cloud platform的Kubernetes cluster上,新建一个hxe.yaml文件: 将如下内容拷贝进yaml文件: kind: ConfigMap apiVersion: v1 metadata: creationTimestamp: 2018-01-18T19:14:38Z name: hxe-pass data: password.json: |+ {"master_password" : "HXEHana1"} --- kin

Activating Google Cloud Storage

先决条件 你需要下面的内容: 1.一个Google账户,比如来自Gmail.如果你没有,请在Google account signup site注册. 2.一个新的或已经存在的Google Developer Console项目.如果你没有一个存在的项目,在Google developer console中创建一个新项目. 3.对你的项目来讲可用的两个Cloud APIs:Google Cloud Storage和Google Cloud Storage JSON API.为了做到这点,请选择你

Getting Started(Google Cloud Storage Client Library)

在运行下面的步骤之前,请确保: 1.你的项目已经激活了Google Cloud Storage和App Engine,包括已经创建了至少一个Cloud Storage bucket. 2.你已经下载了client库并解压了. 3.你已经安装并配置了最新的App Engine Java SDK. 运行LocalExample.java例子 LocalExample.java是一个非部署的例子,有助于快速测试和调查Cloud Storage的功能.除了Eclipse控制台输出它没有UI组件.(Clo

使用Google Cloud Messaging (GCM),PHP 开发Android Push Notifications (安卓推送通知)

什么是GCM? Google Cloud  Messaging (GCM) 是Google提供的一个服务,用来从服务端向安卓设备发送推送通知. GCM分为客户端和服务端开发. 这里我们只介绍服务端开发.其实过程非常简单,只需利用PHP发送POST数据. api key的取得? 待补充? class GCM { public $api_key = "AIzaSyAU3wZs9raik-mHQ"; function __construct() { } /** * Sending Push

Downloading the Google Cloud Storage Client Library

Google Cloud Storage client是一个客户端库,与任何一个生产环境使用的App Engine版本都相互独立.如果你想使用App Engine Development server开测试你的代码,你必须使用App Engine SDK 1.8.1及更高版本的development server. 下载Google Cloud Storage client库 你可以使用流行的工具,比如Apache Maven,Apache Ivy,Git来下载库,或者你可以从Maven库手动下

Java Client for Google Cloud Storage

关于Google Cloud Storage Google Cloud Storage有益于大文件的存储与服务(serve).此外,Cloud Storage提供了对访问控制列表(ACLs)的使用,提供了对上传中断的恢复功能以及其他的特性.Google Cloud Storage client库对应用自动使用恢复功能,提供了一种健壮的导(stream)数据到Cloud Storage的方法. 关于client library Google Cloud Storage client库使你的应用可以

Google Cloud服务免费申请试用以及使用教程

简介 Google Cloud Platform lets you build and host applications and websites, store data, and analyze data on Google's scalable infrastructure. 谷歌云平台可让您构建和主机应用程序和网站,存储数据,并分析对谷歌的可扩展基础架构的数据. 官网 https://cloud.google.com 注意 国内银联信用卡/全球付无法注册. 亲测 VISA 和 腾讯运通卡