Set up our JFrog Pipelines Integrations

Our CI/CD pipeline requires access to GitHub to pull our code, access to JFrog Artifactory to deploy our Docker image and access to AWS to deploy to ECS. We will set up JFrog Pipelines integrations to enable these.

![Pipelines Integration](/images/pipeline-integrations-diagram.png)

An Integration connects Pipelines to an external service/tool. Each integration type defines the endpoint, credentials and any other configuration detail required for Pipelines to exchange information with the service. All credential information is encrypted and held in secure storage, in conformance with best security practices.

You may have already created these integrations in previous steps. If so, you can reuse them and do not need to recreate them. JFrog Pipelines allows you to share integrations and resources across pipelines.

  1. In your JFrog Platform instance, go to Administration > Pipelines > Integrations.

  2. Click Add an Integration.

  3. For the Name, enter artifactory_integration.

  4. For Integration Type, select Artifactory.

  5. Click Get API Key to generate an API key.

  6. Click Test connection to validate.

  7. Click Create to create the integration.

    Artifactory Integration

  8. Click Add an Integration again.

  9. For the Name, enter github_integration.

  10. For Integration Type, select GitHub.

  11. Copy and paste your GitHub personal access token. Ensure it has these minimum GitHub permissions:

    • repo (all)
    • admin:repo_hook (read, write)
    • admin:public_key (read, write)
  12. Click Test connection to validate.

  13. Click Create to create the integration.

    GitHub Integration

  14. In your Cloud9 terminal, execute the following commands to create a AWS user and access key ID and secret access key.

    aws iam create-user --user-name workshopuser
    aws iam create-access-key --user-name workshopuser
  15. Copy the output of these commands.

    AWS Access Key

  16. Go back to your JFrog Platform instance and go to Administration > Pipelines > Integrations.

  17. Click Add an Integration again.

  18. For the Name, enter aws_integration.

  19. For Integration Type, select AWS.

  20. For the Access Key Id and the Secret Access Key, enter the values from above.

  21. Click Create to create the integration.

    AWS Integration

Congratulations! We have created the integrations that are required for our CI/CD pipeline.