Template for Deploying to AWS S3
Problem to solve
We want to help our users deploy easily to AWS S3.
Intended users
Further details
Users need to provision an Amazon S3 bucket, prepare the application revision's files for the bucket, bundle the revision's files, and then push the revision to the bucket.
Proposal
Create a gitlab-ci.yml
template for deploying to AWS S3 using the AWS CLI image.
Users need to prepare a bucket name and an app name/
- To create an Amazon S3 bucket (CLI)
aws s3 mb s3://[bucket_name]
- Give Permissions to the Amazon S3 Bucket and Your IAM User
{
"Statement": [
{
"Action": [
"s3:PutObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::[bucket_name]/*",
"Principal": {
"AWS": [
"111122223333"
]
}
}
]
}
- Bundle the Application's Files into a Single Archive File and Push the Archive File
aws deploy create-application --application-name [app_name]
aws deploy push --application-name [app_name] --s3-location s3://[bucket_name]/[app_name].zip --ignore-hidden-files
Actions needed to be done
-
Create gitlab-ci.yml
template -
Create documentation on how to use the template
Permissions and Security
Documentation
Availability & Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Links / references
- https://circleci.com/orbs/registry/orb/circleci/aws-s3
- https://docs.aws.amazon.com/codedeploy/latest/userguide/tutorials-windows-upload-application.html
- https://circleci.com/orbs/registry/orb/ngs/s3-deploy
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.