Using your own AWS account

How to host grid nodes on your own AWS account

These instructions are case-sensitive. You'll find more success if you copy and paste from this article while setting up your AWS integration with Flood.

Creating an AWS account

Amazon Web Services (AWS) delivers a set of services that when put together form a reliable, scalable, and inexpensive computing platform in the cloud.

To access any web service AWS offers, you must first create an AWS account at aws.amazon.com. An AWS account is simply an Amazon.com account that is enabled to use AWS products; you can use an existing Amazon.com account login and password when creating the AWS account.

Creating an IAM policy

You will need to create a new AWS IAM policy that will outline the exact permissions and AWS services that our new Flood-specific IAM user will require.

Step 1: Go to the IAM Management Console

Navigate to the IAM Management Console section in the list of AWS services.

Step 2: Create a new policy for Flood

Under the Policies sub-menu, create a new policy. Within the JSON tab, paste the following Flood-specific policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "FloodIO",
            "Action": [
                "ec2:*",
                "logs:*",
                "cloudformation:*",
                "cloudwatch:PutMetricData",
                "elasticloadbalancing:*",
                "autoscaling:*",
                "iam:AddRoleToInstanceProfile",
                "iam:CreateServiceLinkedRole",
                "iam:PassRole"
            ],
            "Effect": "Allow",
            "Resource": [
                "*"
            ]
        }
    ]
}

Click Next, and name the policy FloodIO and complete the wizard.

Step 3: Attach the new policy to a user

Now that the policy has been created, create and attach it to a Flood-specific IAM User. Click on the Users sub-menu in the IAM Management Console and Add User.​

Name the new user something like flood_io (or another meaningful username) and ensure that Programmatic access is selected.​

click Next: Permissions to continue.

On the Set permissions page, choose the Attach existing policies directly option, search for the previously created policy FloodIO, and select it from the policies list.

Click Next: Tags to continue.

Click Next: Review if you don't want to add any optional specific Tags to this user.

Review the newly created user's permissions, and click Create user.​

Take note of the Access key ID and Secret access key once the user has been created successfully. You will need to enter both of these later on the Integrations page within the Flood app.​

Step 4: Create an IAM role

You'll now need to create a new Flood-specific IAM Role.

Click on the Roles sub-menu within the IAM Management console.​

Click on the Create role button.

Select the AWS Service option and EC2 as the service. Click Next: Permissions to continue.​

Search for the previously created FloodIO policy and select it from the filtered policy list. Click Next: Tags to continue.

Click Next: Review if you don't want to add any optional specific Tags to this role.​

Review the new Role details and enter flood-node as the Role name. Also, ensure that the previously created FloodIO policy is linked to this role.

Click Create role.

Step 5: Retrieve AWS account ID

You'll need to retrieve your AWS Account ID so you can enter it into the Flood Integrations section to complete your account setup.

In your IAM Management Console, click on My Account.

Under the Account Settings section take note of your Account ID.​

Step 6: Add AWS details to Flood

The last step is to add your AWS account key, secret key and AWS Account ID to Flood so you can use our platform to created your hosted Grids.

Log in with your username and password to the Flood application. Click on your account settings icon in the top right hand corner of the screen and select Integrations.​

Expand the Amazon AWS section within the Integrations list and click Add AWS Account.

Enter all fields with the values that you have noted in previous steps.

Click Save to continue.

Your AWS account details should be listed and ready to use!

Last updated