Back to blog
c4c7usJul 18, 202323 min read

Git Provider and Cloud Services Integration Guide: How to Use AWS with C4C7OPS

In this post, we will explore the process of linking a Git provider to the C4C7OPS platform and how to create an environment to expose services using AWS as the cloud provider: Linking

magnific dame una imagen de un usu 3004550172 1

In this blog, we will explore the process of linking a Git provider to our C4C7OPS platform and how to create an environment to expose our services using AWS as the cloud service provider:

  1. Linking a Git provider with the C4C7OPS platform:
    We will explain how we can link our provider to the C4C7OPS platform.
  2. Access policies and AWS key generation:
    We will detail the access policies that will be applied when generating AWS keys, ensuring proper control and security in handling access keys.
  3. Integration of an API key in C4C7OPS:
    We will guide you through the process of integrating an AWS API key into C4C7OPS, enabling a secure and efficient flow of information between cloud services and our C4C7OPS platform.
  4. Creating a domain from the C4C7OPS console:
    We will explain what a domain is and how to create it directly from the C4C7OPS console.
  5. Creating an environment using C4C7OPS:
    We will present the steps to create an environment using C4C7OPS, enabling the simple configuration and deployment of your services and applications.

Our goal is to provide a clear and detailed guide so you can get the most out of integrating a Git provider and deploying cloud services through AWS using the C4C7OPS platform.

Vinculación de un proveedor Git con la plataforma C4C7OPS

Para realizar la asociación de nuestra cuenta de C4C7OPS con nuestro proveedor Git (donde tenemos los repositorios con el código de los servicios que deseamos usar en un futuro), primeramente debemos dirigirnos a nuestra ventana “Git“ para esto debemos pulsar los botones “Settings“ y seguido en el menú desplegado pulsamos la opción “Git“.

El siguiente paso consiste en generar una clave SSH y copiarla para luego agregarla a las claves SSH con acceso permitido en nuestros repositorios:

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 1

After copying the SSH key, we go to our provider and add it in the allowed keys section. For this example, we will do this with the Bitbucket platform.

There, we go to the "Settings" button and within the displayed options, click "Personal Bitbucket settings":

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 2

Then we click the "SSH keys" option and subsequently "Add key":

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 3

There we paste the copied SSH key and give it a name to easily identify it. To finish, click the "Save" button:

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 4

With this, we resolved the first question: we have successfully linked our C4C7OPS account to our Git provider.

AWS access policies and key generation

Now, to address this point, we must be clear about what AWS access keys are. These are unique credential pairs consisting of an "AWS Access Key" and an "AWS Secret Access Key". These keys are used to authenticate and authorize requests made to AWS services, enabling secure access to resources and services in the cloud. The AWS Access Key acts as a unique identifier for the user or application, while the AWS Secret Access Key is used to digitally sign requests and guarantee authenticity.

Teniendo presente la anterior definición buscaremos las políticas necesarias para crear nuestras claves de acceso en AWS, para esto vamos a la ventana “Cloud connections“ y luego pulsamos el botón “Create.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 5

Ahora veremos un modal como el siguiente, y pulsaremos la opción “Integration policies”:

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 6

There you will find a tutorial on how to create the necessary policies and also how to create the AWS access keys.

Tutorial link:AWS Policies for C4C7OPS Integration

By following the tutorial step by step, we will be able to generate the keys to integrate AWS with the c4c7us console.

Integrating an API key in C4C7OPS

At this point, we will obtain the Access key and Secret access key, which are the values we need to register our AWS access keys. These should be similar to the following keys:

  • Access key: AKQWERTYUIOJHGFDS4
  • Secret access key: 51LKSBZE6NoeYrKNJMlKMi0NK3xpk

Now we return to the C4C7OPS console and, in the "Cloud connection" creation modal, we enter the above values as follows:

  • For Cloud provider, in this case, we select Amazon Web Services.
  • For Name, we enter a name that is easy to recognize for later use.
  • For Connection type, in this case, we select AWS Api Keys.
  • Finally, for Access key ID and Secret access key, we enter the AWS keys generated previously.
Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 7
Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 8
Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 9

Finally, we click "Create" and we will see the successful registration in the C4C7OPS console.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 10

Creating a domain from the C4C7OPS console

Now that we have our first AWS access keys integrated into C4C7OPS, we can create a domain. To do this, we go to the "Domains" window in the navigation menu and click the "Create" button.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 11

Se nos abrirá un modal, donde ingresamos la información correspondiente en cada casilla, primeramente en “Domain” escribimos el dominio que queremos crear desde la consola de C4C7OPS, también, en “Parent domain” podemos registrar si nuestro nuevo ambiente se desea asociar como hijo a un ambiente creado anteriormente, para este caso no seleccionamos nada en esta casilla.

Luego en “Api keys” seleccionamos las claves de acceso de AWS recientemente creadas.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 12

Next, we select the “Create a new hosted zone on AWS for this domain” option to delegate to C4C7OPS the creation of everything related to your domain in AWS. Conversely, if we select the “I already have a hosted Zone on AWS for this domain” option, we assume you already have your domain created and want to associate it, finishing by clicking the “Create” button.

Regarding domains, we can also associate one not created through AWS, but we will cover this in another article.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 13

Upon creating our domain, we will get a view like the following

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 14

The domain creation status may vary during the process

Creating an environment using C4C7OPS

Having successfully completed the previous steps, we will now create an environment using the C4C7OPS console. To do this, go to the menu on the left side of the screen and click the "Environments" option. In the window that opens, click the "Create" button.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 15
Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 6

Now in the modal we opened, we select and enter the necessary information to create our environment, such as the name we want to give it and a short name to identify it in AWS.

We select the region where we want the environment to be located, along with the previously created access keys.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 17
Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 18

Then we select the created domain. Finally, we should have a view like the following. We finish the process by clicking on "Create".

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 19

After this, C4C7OPS will verify that this selected domain is not associated with another environment so that it can be used in the creation process of our current environment. A VPC is also created (A VPC (Virtual Private Cloud) is a cloud networking service that provides logical isolation and network control for computing resources on a cloud computing platform) to associate, and along with it, several subnets are created (A subnet is a range of IP addresses obtained by dividing a computer network into smaller, logical segments) of different tiers.

This is what our created environment would look like from the C4C7OPS console

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 20

The environment creation status may vary during the process

The integration process of our Git provider, AWS, and C4C7OPS is fast, simple, and efficient. If you would like to learn more about us and explore topics related to technology and web development, follow us! We will be delighted to share more interesting content with you.

Guía de integración de un proveedor Git y servicios en la nube: Cómo utilizar AWS con C4C7OPS - imagen 21

C4C7OPS— Medium

Related articles