RSS Amplifier

Burak Berk · Mar 2, 2024

Creating a Service Account on AWS For Terraform

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

Overview For Terraform to create resources on your AWS account, it should get some access keys to authenticate to your account. In this step, we will create a service account for Terraform to use. We will create an admin user group, then create a Terraform user and add it to

Overview

Creating a Service Account on AWS For Terraform

For Terraform to create resources on your AWS account, it should get some access keys to authenticate to your account. In this step, we will create a service account for Terraform to use.

We will create an admin user group, then create a Terraform user and add it to the admin group. Then create access keys for the Terraform user. You can follow the steps below to create them all.

When you are in the AWS Console, search for the IAM service.

Creating a Service Account on AWS For Terraform

Head to "User groups" and click on the "Create group" button.

Creating a Service Account on AWS For Terraform

Enter your group name, search for administratorAccess and select it, and hit the "Create group" button.

Creating a Service Account on AWS For Terraform

Click on the "Users" menu, then click the "Create user" button to create a user for Terraform.

Creating a Service Account on AWS For Terraform

Enter the "User name" and hit the "Next" button.

Creating a Service Account on AWS For Terraform

Add the new user to the group previously created. So the user will have "Administrator Access" permissions.

Creating a Service Account on AWS For Terraform

Review the user and hit "Create user" to continue.

Creating a Service Account on AWS For Terraform

To create a access keys for the new user, hit the username.

Creating a Service Account on AWS For Terraform

Change the tab to "Security credentials" and hit the "Create access key" button.

Creating a Service Account on AWS For Terraform

Change the "Other" type and hit the "Next" button.

Creating a Service Account on AWS For Terraform

You can write a description of why you have created this access key. Hit the "Create access key" button to continue.

Creating a Service Account on AWS For Terraform

Now you can see the access keys. Copy both of them and paste them somewhere else securely. Hit "Done" to continue.

Creating a Service Account on AWS For Terraform

You can use those keys in the Terraform configuration.

❗Keep these access keys safe and secure. Whoever gets access to the keys controls all resources on your AWS account.

Read on burakberk.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.