+++ title = "1.2 Configuring AWS" chapter = false weight = 10 +++ {{% notice info %}} Current module of the workshop is updated to use [AWS Native](https://www.pulumi.com/registry/packages/aws-native/) and [AWS Classic](https://www.pulumi.com/registry/packages/aws/) providers side-by-side. AWS Native is in public preview. AWS Native provides coverage of all resources in the [AWS Cloud Control API](https://aws.amazon.com/blogs/aws/announcing-aws-cloud-control-api/), including same-day access to all new AWS resources. However, some AWS resources are not yet available in AWS Native. {{% /notice %}} Now that you have a basic project, let's configure AWS support for it. ## Step 1 — Add AWS dependencies Before we can use [AWS Native](https://www.pulumi.com/registry/packages/aws-native/) and [AWS Classic](https://www.pulumi.com/registry/packages/aws/) providers, we need to update our project with appropriate dependencies. You can do it by editing your `pom.xml` file. Find the `dependencies` section and add the following entries: ```xml com.pulumi aws 5.3.0 com.pulumi aws-native 0.16.1 ``` Your `pom.xml` file should look like the following: ```xml 4.0.0 com.pulumi iac-workshop 1.0-SNAPSHOT UTF-8 17 17 17 myproject.App com.pulumi pulumi 0.1.0 com.pulumi aws 5.3.0 com.pulumi aws-native 0.16.1 org.apache.maven.plugins maven-jar-plugin 3.2.2 true ${mainClass} org.apache.maven.plugins maven-assembly-plugin 3.3.0 true ${mainClass} jar-with-dependencies make-my-jar-with-dependencies package single org.codehaus.mojo exec-maven-plugin 3.0.0 ${mainClass} ${mainArgs} org.apache.maven.plugins maven-wrapper-plugin 3.1.0 3.8.5 ``` ## Step 2 — Configure an AWS Region Configure the AWS region you would like to deploy to: ```bash 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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions) for a list of available regions). ## (Optional) Step 4 — Configure an AWS Profile If you're using an alternative AWS profile, you can tell Pulumi which to use in one of two ways: * Using an environment variable: `export AWS_PROFILE=` * Using configuration: `pulumi config set aws:profile `