Automate Alibaba Cloud infra building with Terraform (step 2)

In this series, you will learn how to use Terraform with Alibaba Cloud. In this second story, we will create a SSH key pair.

Let’s create a module directory:

mkdir -p modules

Let’s define ALICLOUD_ACCESS_KEY and ALICLOUD_SECRET_KEY environment variables to define credentials:






Based on the book “Alibaba Cloud Guide” written by Bruno Delb

Recommended from Medium

Stupid Simple Service Mesh in Kubernetes

How To Succeed In Intelligent Age?

There’s a new Office ‘Save’ dialog box coming

Getting started with Arduino and Firebase

My First Mobile App

Introduction to log analysis with ELK (Elasticsearch)

DSA #1 — Sorting: Bubble Sort

Upgrade To Drupal 9: Reasons To Migrate & Considerations

Drupal 9 Upgrade and Migration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.

More from Medium

Tips for certification: Auto Scaling (Alibaba Cloud)

How to Configure Terraform on Windows?

What is IaC, and why did I learn Terraform?

AWS Route 53 Basics — Subdomains and S3 Buckets