Each Pulumi project lives in its own directory. Create one now and change into it:
mkdir eks-infrastructure
cd eks-infrastructurePulumi will use the directory name as your project name by default. To create an independent project, simply name the directory differently.
A Pulumi project is just a directory with some files in it. It’s possible for you to create a new one by hand. The pulumi new command, however, automates the process:
pulumi new typescript -yThis will print output similar to the following with a bit more information and status as it goes:
Created project 'eks-infrastructure'
Created stack 'dev'
Saved config
Installing dependencies...
Finished installing dependencies
Your new project is ready to go!
This command has created all the files we need, initialized a new stack named dev (an instance of our project), and installed the needed package dependencies from NPM.
Run the following commands to install the packages:
npm install @pulumi/eksnpm install @pulumi/awsxThe packages will be added to node_modules, package.json, and package-lock.json.
Configure the AWS region you would like to deploy to:
pulumi config set aws:region us-west-2Feel free to choose any AWS region.