Amazon Web Services

How to use Codefresh with AWS

Codefresh has native support for AWS in the following areas:

Using Amazon ECR

Amazon Container registries are fully compliant with the Docker registry API that Codefresh follows. You can connect GCR like any other Docker registry.

Connecting to ECR

Connecting to ECR

Once the registry is added you can the standard push step step in pipelines. See also the documentation page for working with Docker registries.

Deploying to Amazon Kubernetes

Codefresh has native support for connecting a EKS cluster in the cluster configuration screen.

Connecting an Amazon cluster

Connecting a Amazon cluster

Once the cluster is connected you can use any of the available deployment options for Kubernetes clusters. You also get access to all other Kubernetes dashboards such as the cluster dashboard or the environment dashboard .

Storing test reports in Amazon S3 bucket

Codefresh has native support for test reports. You can store the reports on Amazon S3.

Amazon cloud storage

Amazon cloud storage

See the full documentation for test reports.

Using Amazon S3 for storing Helm charts

You can connect an Amazon S3 bucket as a Helm repository in the integrations screen.

Using Amazon for Helm charts

Using Amazon for Helm charts

Once you connect your Helm repository you can use it any Codefresh pipeline with the Helm step.

Traditional Amazon deployments

For any other Amazon deployment you can use the Amazon CLI from a Docker image in a freestyle step

YAML

  create_a_vm:
    title: "Creating a Virtual machine"
    type: "freestyle"
    arguments:
      image: "amazon/aws-cli"
      commands:
        - aws ec2 run-instances --image-id ami-xxxxxxxx --count 1 --instance-type t2.micro --key-name MyKeyPair --security-group-ids sg-903004f8 --subnet-id subnet-6e7f829e