5

Full power of AWS with Heroku-like experience

 2 years ago
source link: https://stacktape.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Production-grade in minutes

1.Configure your stack

Everything can be configured using a simple, declarative and well-documented configuration.

The example configuration translates to:

  • ~800 lines of CloudFormation
  • ~650 lines of Terraform

Example stacktape.yml configuration file

serviceName: my-application

resources:
  mainGateway:
    type: http-api-gateway
  apiServer:
    type: container-workload
    properties:
      resources:
        cpu: 1
        memory: 2048
      scaling:
        minInstances: 1
        maxInstances: 5
      containers:
        - name: api-container
          packaging:
            entryfilePath: ./src/main.ts
          environment:
            - name: DB_CONNECTION_STRING
              value: $Param('mainDb', 'connectionString')
          events:
            - type: http-api-gateway
              properties:
                method: GET
                path: /{proxy+}
                containerPort: 3000
                httpApiGatewayName: mainGateway
  mainDb:
    type: relational-database
    properties:
      engine:
        type: aurora-postgresql-serverless
      credentials:
        masterUserName: $Secret('db_username')
        masterUserPassword: $Secret('db_password')

2.Deploy using single command

Deploy your stack to as many "stages" (production, staging, QA, etc.) as you like.

You can deploy from your own machine or easily configure a CI/CD pipeline.

> stacktape deploy --stage production --region eu-west-1

[SUCCESS] Loading configuration done in 0.03 sec.

[SUCCESS] Fetching stack data done in 0.63 sec.

[SUCCESS] Packaging workloads
↪ apiServer-apicontainer: done in 18.4 sec. Image size: 85 MB.

[SUCCESS] Uploading deployment artifacts done in 6.53 sec.

[SUCCESS] Validating template done in 0.42 sec.

[INFO] Deploying stack my-application-production...

[INFO] Deploying infrastructure resources. Finished: 9/35.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK