Use Auto DevOps to deploy to EC2
To use Auto DevOps to deploy to EC2:
In your
.gitlab-ci.yml
file, reference theAuto-Devops.gitlab-ci.yml
template.Define a job for the
build
stage namedbuild_artifact
. For example:# .gitlab-ci.yml include: - template: Auto-DevOps.gitlab-ci.yml variables: AUTO_DEVOPS_PLATFORM_TARGET: EC2 build_artifact: stage: build script: - <your build script goes here> artifacts: paths: - <built artifact>
For a video walkthrough of this process, view Auto Deploy to EC2.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support