Skip to content

Commit

Permalink
refactor: update the iam role tuto
Browse files Browse the repository at this point in the history
  • Loading branch information
deimosfr committed May 2, 2024
1 parent 1d3c6c5 commit 9afbae4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 26 deletions.
27 changes: 18 additions & 9 deletions website/guides/tutorial/use-aws-iam-roles-with-qovery.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
last_modified_on: "2024-05-01"
last_modified_on: "2024-05-02"
$schema: "/.meta/.schemas/guides.json"
title: "Use AWS IAM roles with Qovery"
description: "Give AWS IAM permissions to your application/container/job with Qovery"
Expand Down Expand Up @@ -194,7 +194,7 @@ Kubernetes reminder: **a deployed service account in a Kubernetes namespace, bec

</Alert>

This step will help you on deploying a service account on your Kubernetes cluster. In case you want to do it manually on the cluster with `kubectl`, you just have to push a service account like:
This step will help you deploying a service account on your Kubernetes cluster. In case you want to do it manually on the cluster with `kubectl`, you just have to push a service account like:

```yaml
apiVersion: v1
Expand Down Expand Up @@ -222,13 +222,22 @@ Then configure the Helm chart with the following values:
<img src="/img/aws-iam-assume-role/helm_sa_1.png" alt="Helm chart" />
</p>
* Helm source: `Git provider`
* Git repository: `Public repository`
* Public repository URL: `https://github.com/Qovery/create_service_account.git`
* Branch: `main`
* Root application chart: `/chart`
* Helm source: `Helm repository`
* Git repository: `Qovery Service Account Helper`
* Chart name: `qovery-sa-helper`
* Version: `0.1.0`

Then click on the `Continue` button.
Create a new help repository on phase 3, and fill the chart info:

<p Valign="center">
<img src="/img/aws-iam-assume-role/set-helm-repo.png" alt="Helm chart" />
</p>

* Repository name: `Qovery Service Account Helper`
* Kind: HTTPS
* Repository url: `https://qovery.github.io/create_service_account/`

Then click on `Create`, and the `Continue` button.

On the values override file, we do not need to override anything, so select `None`, and then click on the `Continue` button.

Expand Down Expand Up @@ -269,7 +278,7 @@ At this stage, the job should have been executed and the service account should

### Validate access

To validate the AWS role has correctly been deployed, we can connect to the pod, and see if we have the AWS token. We will use the Qovery CLI to connect to our pod:
To validate AWS role has correctly been deployed, we can connect to the pod, and see if we have the AWS token. We will use the Qovery CLI to connect to our pod:

```bash
$ qovery shell
Expand Down
25 changes: 17 additions & 8 deletions website/guides/tutorial/use-aws-iam-roles-with-qovery.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Kubernetes reminder: **a deployed service account in a Kubernetes namespace, bec

</Alert>

This step will help you on deploying a service account on your Kubernetes cluster. In case you want to do it manually on the cluster with `kubectl`, you just have to push a service account like:
This step will help you deploying a service account on your Kubernetes cluster. In case you want to do it manually on the cluster with `kubectl`, you just have to push a service account like:

```yaml
apiVersion: v1
Expand Down Expand Up @@ -213,13 +213,22 @@ Then configure the Helm chart with the following values:
<img src="/img/aws-iam-assume-role/helm_sa_1.png" alt="Helm chart" />
</p>

* Helm source: `Git provider`
* Git repository: `Public repository`
* Public repository URL: `https://github.com/Qovery/create_service_account.git`
* Branch: `main`
* Root application chart: `/chart`
* Helm source: `Helm repository`
* Git repository: `Qovery Service Account Helper`
* Chart name: `qovery-sa-helper`
* Version: `0.1.0`

Then click on the `Continue` button.
Create a new help repository on phase 3, and fill the chart info:

<p Valign="center">
<img src="/img/aws-iam-assume-role/set-helm-repo.png" alt="Helm chart" />
</p>

* Repository name: `Qovery Service Account Helper`
* Kind: HTTPS
* Repository url: `https://qovery.github.io/create_service_account/`

Then click on `Create`, and the `Continue` button.

On the values override file, we do not need to override anything, so select `None`, and then click on the `Continue` button.

Expand Down Expand Up @@ -260,7 +269,7 @@ At this stage, the job should have been executed and the service account should

### Validate access

To validate the AWS role has correctly been deployed, we can connect to the pod, and see if we have the AWS token. We will use the Qovery CLI to connect to our pod:
To validate AWS role has correctly been deployed, we can connect to the pod, and see if we have the AWS token. We will use the Qovery CLI to connect to our pod:

```bash
$ qovery shell
Expand Down
9 changes: 0 additions & 9 deletions website/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,15 +667,6 @@ module.exports = {
"series_position": null,
"title": "URL Shortener API with Kotlin (Part 1/2)"
},
{
"author_github": "https://github.com/deimosfr",
"description": null,
"id": "/tutorial/use-aws-iam-roles-with-qovery",
"last_modified_on": null,
"path": "website/guides/tutorial/use-aws-iam-roles-with-qovery.md",
"series_position": null,
"title": "Use AWS IAM roles with Qovery"
},
{
"author_github": "https://github.com/evoxmusic",
"description": null,
Expand Down
Binary file modified website/static/img/aws-iam-assume-role/helm_sa_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9afbae4

Please sign in to comment.