Kubiya AI and AWS Integration
Tags: devops, ai, aws
Published: 2023-11-23 16:03:12

Integrating Kubiya AI with AWS brings a new level of automation and intelligence to your cloud computing endeavours. AWS, as a cloud platform, empowers users to access computing resources, storage, and services on-demand, fostering scalability and flexibility.

By partnering with Kubiya AI, you introduce an intelligent assistant into this dynamic environment. Kubiya AI navigates AWS seamlessly, automating routine tasks, and enhancing the user experience. Whether you’re exploring the vast capabilities of Amazon EC2 for computing power, leveraging Amazon S3 for storage solutions, or managing databases with Amazon RDS, Kubiya AI becomes your automated guide.

This integration isn’t just about convenience — it’s a synergy of cutting-edge technology that allows you to focus on your core objectives while Kubiya AI takes care of the intricate details. It’s a fusion of AWS’s robust cloud infrastructure with Kubiya AI’s automation prowess, providing you with an efficient, user-friendly, and intelligent cloud computing experience.

## prerequisites

* Required a Slack account

* Create a channel in Slack to integrate with the Kubiya.

## Install the Slack App

Installing Kubiya Slack app

The best way to get started with Kubiya is using the direct integration within Slack which ensures a streamlined and enhanced user experience, enabling you and your team to interface with the virtual assistant without requiring platform switching.
>  Don’t worry — after installing the Slack app you’ll still be able to access the [management interface](https://app.kubiya.ai/).

## Features of the Slack integration

* **Immediacy:** Engage with Kubiya directly within your established communication channels on Slack and manage all kinds of cloud resources with a blink of an eye.

* **Efficiency: **All native integrations can be easily connected right from Slack.

* **Collaboration: **Enhance collective decision-making by sharing and debating Kubiya’s insights within your team’s Slack channels.

## Installing the Slack App

Add the Kubiya app to your Slack workspace:

![](https://cdn-images-1.medium.com/max/2532/0*HycX2i90dydw8WYg.png)

Clicking on the Add to Slack button above will prompt you to approve Kubiya’s access to your workspace:
>  Important: Make sure the correct workspace is selected on the top right.

![](https://cdn-images-1.medium.com/max/5200/0*mCqfN9c-Q8DutYZX)

After adding to Slack, you should be redirected to this page, indicating that the onboarding process succeeded:

![](https://cdn-images-1.medium.com/max/5200/0*fmhvPsU3AFWkMuOV)

You should see the newly installed Kubiya app in your Slack workspace — with a message waiting for you to enable your first integrations:

![](https://cdn-images-1.medium.com/max/5200/0*4kzGBaK_iCVIOkkK)

## Add connection of Amazon Web Services (AWS)

## Prerequisites

Before you begin, ensure that you have the following:

* Access to the Kubiya platform.

* Appropriate permissions to make configurations on AWS (IAM)

## Create a Role on AWS

Create a role on AWS for Kubiya to perform actions on AWS:

 1. Login to your AWS console and navigate to the Identity and Access Management (IAM) page.

 2. Click on the Roles section

 3. Click the Create Role button in the top right corner

 4. In the “**Select trusted entity**” dialog:

 5. Select “**AWS account**”

 6. Select “**Another AWS account”**

 7. Enter the Kubiya Account ID in the identifier input box 564407622114

 8. Click Next

![](https://cdn-images-1.medium.com/max/4198/0*M5ZC6SjaD29JMnZr)

In the ‘**Policies**’ dialog, select the access rules that you would like Kubiya to have access to, then click Next

![](https://cdn-images-1.medium.com/max/4216/0*0-Xq9Q2HVlAifpML)

 1. In the “**Role details**” dialog:

 2. Name the role, you will need this later.

 3. Confirm the Kubiya Account ID in the JSON under “Step 1: Select trusted entities”

 4. Confirm the selected permissions under “Step 2: Add permissions”

 5. If correct, click the Create role button

![](https://cdn-images-1.medium.com/max/4214/0*3QGUBwbwX22Ncoy2)

## Enable the integration

open the channel which is created and mention the Kubiya with a greeting. It will invite the Kubiya app to the channel and prompt you to activate the Kubiya account.

![](https://cdn-images-1.medium.com/max/5200/0*7XByCQrtw0qdZO7-)

It will redirect you to the Kubiya login page and click on Continue with Slack.

![](https://cdn-images-1.medium.com/max/5200/0*NLL_uK2lRoYnrB4p)

Accept and Continue the sign-in to Kubiya with Slack. It will send an email for authentication.

![](https://cdn-images-1.medium.com/max/5200/0*jH2EP02MnGY1TtCD)

Enter the One-time password to authenticate with the Kubiya

![](https://cdn-images-1.medium.com/max/5200/0*qDfKscIr4ZfJntc4)

It will prompt two options

* Chat on Slack

* Kubiya Web App, Click on Kubiya Web App

![](https://cdn-images-1.medium.com/max/5200/0*zTrg1DpwJidpZ783)

It will open the Kubiya Welcome page and click on the Start.

![](https://cdn-images-1.medium.com/max/5200/0*3T6-1yu5e76FyNP3)

This is the Kubiya Initial dashboard to view history.

![](https://cdn-images-1.medium.com/max/5200/0*2jloY80bvrz0_boj)

Once you’ve activated the Kubiya account, open Slack and navigate to the integration setup. Click on “**Connect AWS**” and a window will appear prompting you to enter the AWS credentials.

![](https://cdn-images-1.medium.com/max/5200/0*e31N9X_jFF4fPSdU)

Input the credentials to establish a connection with the AWS account.

![](https://cdn-images-1.medium.com/max/5200/0*H9TtR_rV8w2mDibw)

A prompt will appear indicating the connection process between Kubiya and the AWS account.

![](https://cdn-images-1.medium.com/max/5200/0*JxsZ8ol-M5JbIYI0)

A window will appear, indicating that the connection to AWS has been successfully established.

![](https://cdn-images-1.medium.com/max/5200/0*9C75ovLB75gBmGo9)

In the Kubiya UI, We can view the Connections which are configured.

![](https://cdn-images-1.medium.com/max/5200/0*MPWcyJFB1tTtNYlg)

Navigate to the Apps section of Slack to see the integrated apps within the Slack account.

![](https://cdn-images-1.medium.com/max/5200/0*FA7WLAOFwEy0AzDZ)

Open the Channel which is created for your team. Mention Kubi to list the S3 buckets within the AWS Account.

![](https://cdn-images-1.medium.com/max/5200/0*jpfjJUqwfiuR7mR6)

We can view the list of s3 buckets in the AWS management console.

![](https://cdn-images-1.medium.com/max/4292/0*UiXpMVhldAsBzKue)

​[AI Suggestions](https://docs.kubiya.ai/gen-2-docs/slack-app/ai-suggestions) are enabled for AWS by default

![](https://cdn-images-1.medium.com/max/2000/0*49KrSHu5mMvv7nT6)

Mention Kubi to List all Ec2 Instances.

![](https://cdn-images-1.medium.com/max/5200/0*nt_mY0sa-e3Kkqiy)

Mention Kubi to List all the Ec2 instances in the ap-south-1 region. Kubiya will give you the reply in the Thread.

![](https://cdn-images-1.medium.com/max/5200/0*YNVQrPqR4M5o-Neb)

Mention Kubi to Create an Ec2 Instance. It will prompt you to enter the required options to create the instance.

![](https://cdn-images-1.medium.com/max/5200/0*iLoYfNxVCQMhhGqw)

Enter the required values to create the Ec2 instance.

![](https://cdn-images-1.medium.com/max/2000/0*evmMtn4J_DmdRKSr)

In the AWS Management Console, search for the EC2. Click on it and we can view the running instances

![](https://cdn-images-1.medium.com/max/4828/0*J27HT_K9UO3wkQ7u)

Mention Kubi to list the running Ec2 instance in the ap-south-1 region. Kubi will give you a reply in the thread. we can verify the EC2 Instance with the Instance ID.

![](https://cdn-images-1.medium.com/max/5200/0*cZNAOHJoO0sxZti3)

Mention Kubi to terminate the EC2 instance. It will prompt you to enter the Instance ID.

![](https://cdn-images-1.medium.com/max/5200/0*z9mParLTyBGNyPfS)

Mention Kubi with the Instance ID to terminate.

![](https://cdn-images-1.medium.com/max/5200/0*gQAMtFVDfBEs51pH)

In the Thread window kubi will reply as the operation completed successfully.

![](https://cdn-images-1.medium.com/max/2000/0*_7Z8PxUOxhB0Am_q)

No instances are running in the ap-south-1 region.

![](https://cdn-images-1.medium.com/max/4796/0*vK9n0A3rzQd6QspP)

Open the Kubiya Web UI dashboard.

![](https://cdn-images-1.medium.com/max/5200/0*wbod-YuKyJ8cVLtB)

We can view the Actions history in the Kubiya web UI.

![](https://cdn-images-1.medium.com/max/5200/0*HvF38eA78TGkw_OL)

In the Users & Groups, we can view the Slack user name.

![](https://cdn-images-1.medium.com/max/5200/0*i5_HbWgE5DwJb_TX)

In summary, the integration of Kubiya AI with AWS is a game-changer in cloud computing. AWS’s extensive capabilities blend effortlessly with Kubiya AI’s automation, offering users a seamless, intelligent, and personalized experience. It’s more than a partnership; it’s a revolution in how we leverage the cloud, making complex tasks simple and unlocking the full potential of AWS with ease.

Thanks for reading! I hope you found this helpful and informative.

I’m always happy to connect with tech enthusiasts and answer any questions you may have. Don’t forget to follow me for more updates on cloud computing, tech and more.😄😄

Follow me on LinkedIn to see interesting posts like this : ) [Linkedin](https://www.linkedin.com/in/subbaramireddy/)