Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for AWS Web Application with Automatic deploys using CircleCI
Jorge Tovar
Jorge Tovar

Posted on • Edited on

     

AWS Web Application with Automatic deploys using CircleCI

Ship Web Applications with AWS and CircleCI

"The slow feedback loop can greatly affect developers' productivity and happiness."

Web Application

A couple of days ago, I read about Vite: a powerful and fast tool. I created a demo to see it in action. Although a very basic one, it seems like Vite is gaining traction for his outstanding performance and compilation times.

This repository is a getting started example about how to create a static website simply with IaC, compilation time of milliseconds, and CI/CD. The tech stack includes:

  • ViteJS: Next Generation Frontend ToolingApplication

  • AWS : Hosting the website using S3 (In the future I will post an update with CloudFront and Route53)

  • Terraform: Infrastructure as CodeInfrastructure

  • CircleCI: Continuous integration and deploymentPipeline

Vite (Ultrafast hot-reload and build)

It can often take an unreasonably long wait to spin up a dev server. Component updates can take a couple of seconds or even minutes in some cases to be reflected in the browser. Vite aims to address these issues.

npmcreatevite@latestnpmrundevnpmrunbuild
Enter fullscreen modeExit fullscreen mode

AWS

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance.

Terraform

Terraform is an open-source infrastructure as code software tool that provides a consistent CLI workflow to manage hundreds of cloud services.

  1. Create the remote backend to handle the terraform state (Information about what resources have been created)
  2. Create the bucket and apply the policies and rules needed
terraform initterraform planterraform apply
Enter fullscreen modeExit fullscreen mode
➜  backend-state git:(initial-commit) ✗ terraform applyvar.state_bucket_name  The name of the S3 bucket. Must be globally unique.  Enter a value: vite-aws-terraformTerraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:  + createTerraform will perform the following actions:...aws_dynamodb_table.terraform_locks: Creating...aws_s3_bucket.terraform_state: Creating...aws_s3_bucket.terraform_state: Creationcompleteafter 8s[id=vite-aws-terraform]aws_s3_bucket_public_access_block.terraform_state_policy: Creating...aws_s3_bucket_public_access_block.terraform_state_policy: Creationcompleteafter 1s[id=vite-aws-terraform]aws_dynamodb_table.terraform_locks: Still creating...[10s elapsed]aws_dynamodb_table.terraform_locks: Creationcompleteafter 11s[id=vite-aws-terraform-locks]Applycomplete! Resources: 3 added, 0 changed, 0 destroyed.Outputs:dynamodb_table_name="vite-aws-terraform-locks"s3_bucket_arn="arn:aws:s3:::vite-aws-terraform"
Enter fullscreen modeExit fullscreen mode

CircleCI

Fast, customizable, and reliable service to create pipelines and automate your deployments. The ORBs make it very easy to integrate and deploy in AWS and others providers.

12 seconds to update the website.

Image description

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software Architect | 🚀 Startups | ☁️ AWS Cloud
  • Location
    Bogotá, Colombia
  • Education
    Universidad de los Andes, Colombia
  • Work
    Software Architect
  • Joined

More fromJorge Tovar

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp