Now that you have a basic project, let’s configure AWS support for it.
Run the following command to install the AWS package:
npm install @pulumi/aws npm install @pulumi/awsx
The package will be added to
Now that the AWS packages are installed, we need to import it as part of our project:
import * as aws from "@pulumi/aws"; import * as awsx from "@pulumi/awsx";
index.ts file should now have the following contents:
import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; import * as awsx from "@pulumi/awsx
Configure the AWS region you would like to deploy to:
pulumi config set aws:region us-west-2
Feel free to choose any AWS region that supports the services used in these labs (see this table for a list of available regions).
If you’re using an alternative AWS profile, you can tell Pulumi which to use in one of two ways:
export AWS_PROFILE=<profile name>
pulumi config set aws:profile <profile name>