Amazon Web Services
How to use Codefresh with AWS
Codefresh has native support for AWS in the following areas:
- Connecting to Amazon registries
- Deploying to Amazon EKS
- Using Amazon S3 for Test reports
- Using Amazon S3 for Helm charts
Using Amazon ECR
Amazon Container Registries are fully compliant with the Docker registry API that Codefresh follows. Follow the instruction under Amazon EC2 Container Registry to connect.
Once the registry is added, you can use the standard push step in your pipelines. See working with Docker registries for more information.
Deploying to Amazon Kubernetes
Codefresh has native support for connecting a EKS cluster in the cluster configuration screen.
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.
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.
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