---
title: Integrate with Terraform
source: https://docs.newrelic.com/docs/infrastructure/amazon-integrations/aws-integration-for-metrics/terraform
---

For seamless integration of your AWS account with New Relic, [Integration via CloudFormation and CloudWatch metric stream](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/aws-integration-for-metrics/via-cloudformation) is the most recommended approach. If you are already managing your AWS accounts and services using Terraform, you might prefer the following integration method because New Relic offers an AWS Cloud Integrations module that simplifies setting up the integration.

## Prerequisites [#prerequisites]

Before you begin integrating your AWS account with New Relic, ensure that you meet the following prerequisites:

-   **[Permissions](https://docs.newrelic.com/docs/accounts/accounts-billing/new-relic-one-user-management/user-permissions/#infrastructure)** for cloud integrations: You’ll need these permissions for your New Relic account.
-   The New Relic account ID and region that you want to link to AWS.

## Integration steps [#integration-steps]

To integrate your AWS account with New Relic, follow these steps:

1.  Navigate to [**Infrastructure > AWS**](https://one.newrelic.com/infra/infrastructure/cloud-aws).

2.  Select the correct account.

3.  Click **Set up integration**.

4.  Follow the instructions on each screen, and fill in the fields that apply to you. For this integration, choose the following options in the given screens:

    1.  **Choose Data type(s)**: Metrics
    2.  **Choose a setup method**: Automate with Terraform

5.  From the **Terraform** screen, open the documentation that guides how to connect your New Relic account with the Terraform provider account.

6.  After a successful integration, you can see your AWS data in New Relic.

## Related topics [#related-topics]

[Collect data from multiple AWS accounts](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/manage-aws-data/aws-multi-account/)

Learn how to collect data from multiple AWS accounts.

[AWS integrations metrics](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/manage-aws-data/aws-integrations-metrics/)

Explore and use metrics from CloudWatch Metric Stream.

[AWS integrations via CloudFormation and CWMS](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/aws-integration-for-metrics/via-cloudformation-cwms)

Integrate AWS services with New Relic using CloudFormation and CloudWatch Metric Streams.

[AWS integrations via CloudFormation and API Polling](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/aws-integration-for-metrics/via-cloudformation-and-api-polling)

Integrate AWS services with New Relic using CloudFormation and API Polling.

[Manual integrations from AWS console](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/aws-integration-for-metrics/manual)

Manually integrate AWS services with New Relic from AWS console.
