Skip to main content
Amazon FSx for NetApp ONTAP

Set up permissions for FSx for ONTAP

Contributors juliantap netapp-rlithman netapp-bcammett

To create or manage an FSx for ONTAP working environment, you need to add AWS credentials to BlueXP by providing the ARN of an IAM role that gives BlueXP the permissions needed to create an FSx for ONTAP working environment.

Why AWS credentials are required

AWS credentials are required to create and manage FSx for ONTAP working environments in BlueXP. You can create new AWS credentials or add AWS credentials to an existing BlueXP organization. Credentials provide BlueXP with the permissions needed to manage resources and processes within your AWS cloud environment.

Credentials and permissions are managed via BlueXP workload factory. BlueXP workload factory is a life-cycle management platform designed to help users optimize workloads using Amazon FSx for NetApp ONTAP file systems. BlueXP uses the same set of AWS credentials and permissions as BlueXP workload factory.

The workload factory interface provides BlueXP users with options to enable workload capabilities like Storage, VMware, Databases, and GenAI, and to select permissions for the workloads. Storage is the storage management capability in workload factory and it is the only capability you need to enable and add credentials for to create and manage your FSx for ONTAP file systems.

About this task

When adding new credentials for FSx for ONTAP from Storage in BlueXP workload factory, you'll need to decide which level of permissions, or operational mode, you'd like to operate in. To discover and deploy AWS resources like FSx for ONTAP file systems, you'll need read or automate permissions. BlueXP FSx for ONTAP will operate in basic mode unless you select read mode or automate mode. Learn more about operational modes.

New and existing AWS credentials are viewable from BlueXP settings > Credentials page.

You can add credentials using two methods:

  • Manually: You create the IAM policy and the IAM role in your AWS account while adding credentials in workload factory.

  • Automatically: You capture a minimal amount of information about permissions and then use a CloudFormation stack to create the IAM policies and role for your credentials.

Add credentials to an account manually

You can add AWS credentials to BlueXP manually to give your account the permissions needed to manage the AWS resources that you'll use to run your unique workloads. Each set of credentials that you add will include one or more IAM policies based on the workload capabilities you want to use, and an IAM role that is assigned to your account.

There are three parts to creating the credentials:

  • Select the services and permissions level that you would like to use and then create IAM policies from the AWS Management Console.

  • Create an IAM role from the AWS Management Console.

  • From workloads in BlueXP, enter a name and add the credentials.

To create or manage an FSx for ONTAP working environment, you need to add AWS credentials to BlueXP by providing the ARN of an IAM role that gives BlueXP the permissions needed to create an FSx for ONTAP working environment.

Before you begin

You'll need to have credentials to log in to your AWS account.

Steps
  1. In the BlueXP console, select the Settings icon, and select Credentials.

  2. Select Add credentials.

  3. Select Amazon Web Services, then FSx for ONTAP, and then Next.

    You're now on the Add Credentials page in BlueXP workload factory.

  4. Select Add manually and then follow the steps below to fill out the three sections under Permissions configuration.

    A screenshot showing the items that you need to define manually for each set of credentials.

Step 1: Select the workload capabilities and create the IAM policies

In this section you'll choose which types of workload capabilities will be manageable as part of these credentials, and the permissions enabled for each workload. You'll need to copy the policy permissions for each selected workload from the Codebox and add them into the AWS Management Console within your AWS account to create the policies.

A screenshot showing which types of workload capabilities will be manageable as part of the policies in these credentials.

Steps
  1. From the Create policies section, enable each of the workload capabilities that you want to include in these credentials. Enable Storage to create and manage file systems.

    You can add additional capabilities later, so just select the workloads that you currently want to deploy and manage.

  2. For those workload capabilities that offer a choice of permission levels (automate or read), select the type of permissions that will be available with these credentials. Learn about the permissions, also known as operational modes.

  3. In the Codebox window, copy the permissions for the first IAM policy.

  4. Open another browser window and log in to your AWS account in the AWS Management Console.

  5. Open the IAM service, and then select Policies > Create Policy.

  6. Select JSON as the file type, paste the permissions you copied in step 3, and select Next.

  7. Enter the name for the policy and select Create Policy.

  8. If you've selected multiple workload capabilities in step 1, repeat these steps to create a policy for each set of workload permissions.

Step 2: Create the IAM role that uses the policies

In this section you'll set up an IAM role that Workload Factory will assume that includes the permissions and policies that you just created.

A screenshot showing which permissions will be part of the new role.

Steps
  1. In the AWS Management Console, select Roles > Create Role.

  2. Under Trusted entity type, select AWS account.

    1. Select Another AWS account and copy and paste the account ID for FSx for ONTAP workload management from the BlueXP workload factory user interface.

    2. Select Required external ID and copy and paste the external ID from the BlueXP workloads user interface.

  3. Select Next.

  4. In the Permissions policy section, choose all the policies that you defined previously and select Next.

  5. Enter a name for the role and select Create role.

  6. Copy the Role ARN.

  7. Return to BlueXP workloads Add credentials page, expand the Create role section, and paste the ARN in the Role ARN field.

Step 3: Enter a name and add the credentials

The final step is to enter a name for the credentials in BlueXP workload factory.

Steps
  1. From BlueXP workloads Add credentials page, expand Credentials name.

  2. Enter the name that you want to use for these credentials.

  3. Select Add to create the credentials.

Result

The credentials are created and viewable on the Credentials page. You can now use the credentials when creating an FSx for ONTAP working environment.

Add credentials to an account using CloudFormation

You can add AWS credentials to BlueXP workloads using an AWS CloudFormation stack by selecting the workload capabilities that you want to use, and then launching the AWS CloudFormation stack in your AWS account. CloudFormation will create the IAM policies and IAM role based on the workload capabilities you selected.

Before you begin
  • You'll need to have credentials to log in to your AWS account.

  • You'll need to have the following permissions in your AWS account when adding credentials using a CloudFormation stack:

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "cloudformation:CreateStack",
                    "cloudformation:UpdateStack",
                    "cloudformation:DeleteStack",
                    "cloudformation:DescribeStacks",
                    "cloudformation:DescribeStackEvents",
                    "cloudformation:DescribeChangeSet",
                    "cloudformation:ExecuteChangeSet",
                    "cloudformation:ListStacks",
                    "cloudformation:ListStackResources",
                    "cloudformation:GetTemplate",
                    "cloudformation:ValidateTemplate",
                    "lambda:InvokeFunction",
                    "iam:PassRole",
                    "iam:CreateRole",
                    "iam:UpdateAssumeRolePolicy",
                    "iam:AttachRolePolicy",
                    "iam:CreateServiceLinkedRole"
                ],
                "Resource": "*"
            }
        ]
    }
Steps
  1. In the BlueXP console, select the Settings icon, and select Credentials.

  2. Select Add credentials.

  3. Select Amazon Web Services, then FSx for ONTAP, and then Next.
    You're now on the Add Credentials page in BlueXP workload factory.

  4. Select Add via AWS CloudFormation.

    A screenshot showing the items that need to be defined before you can launch CloudFormation to create the credentials.

  5. Under Create policies, enable each of the workload capabilities that you want to include in these credentials and choose a permission level for each workload.

    You can add additional capabilities later, so just select the workloads that you currently want to deploy and manage.

  6. Under Credentials name, enter the name that you want to use for these credentials.

  7. Add the credentials from AWS CloudFormation:

    1. Select Add (or select Redirect to CloudFormation) and the Redirect to CloudFormation page is displayed.

      A screenshot showing how to create the CloudFormation stack for adding policies and a role for workload factory credentials.

    2. If you use single sign-on (SSO) with AWS, open a separate browser tab and log in to the AWS Console before you select Continue.

      You should log in to the AWS account where the FSx for ONTAP file system resides.

    3. Select Continue from the Redirect to CloudFormation page.

    4. On the Quick create stack page, under Capabilities, select I acknowledge that AWS CloudFormation might create IAM resources.

    5. Select Create stack.

    6. Return to BlueXP workload factory and open the Credentials page from the menu icon to verify that the new credentials are in progress, or that they have been added.

Result

The credentials are created and viewable on the Credentials page. You can now use the credentials when creating an FSx for ONTAP working environment.