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:
export ALICLOUD_ACCESS_KEY='...'
export ALICLOUD_SECRET_KEY='...'