Pulumi Cloud self-hosted ECS install
The ECS-Hosted Installer is used to deploy the self-hosted Pulumi Cloud in Amazon Elastic Container Service. You can choose between using a TypeScript or Golang installer.
Prerequisites
You must provide and manage the following:
- AWS VPC with
- At least 2 public subnets available.
- At least 2 private subnets available.
- At least 2 isolated subnets available.
- An “isolated” subnet means it can only route traffic within the subnet. So there is no NAT gateway.
- Route53 hosted zone.
- ACM certificate that covers FQDNs of the following form, where
{subdomain}is optional:{subdomain}.{zoneDomainName}api.{subdomain}.{zoneDomainName}app.{subdomain}.{zoneDomainName}
- KMS key that the self-hosted Pulumi Cloud uses for encryption and decryption.
ECS-hosted deployment
The ECS-hosted installation of Pulumi deploys the following services:
- ECS - Managed ECS Cluster
- Fargate - Managed Container Service
- RDS Aurora - Managed MySQL DB for persistent state and automated replication and snapshotting.
- S3 - Object storage for checkpoints and policy packs.
- CloudWatch Logs - Optional centralized logging for the service containers. Logging is off by default.
- Route53 - Managed DNS records.
- ALB - Managed application traffic and TLS termination, using the ACM certificate you provide.
Pulumi deploying Pulumi
This installer uses Pulumi to deploy Pulumi Cloud. You use the Pulumi CLI with a DIY backend (for example, S3) to deploy all the services listed above and stand up the self-hosted Pulumi Cloud. The installation package includes the Pulumi project code, so you can deploy the service by running pulumi up.
Before you deploy, set up the following:
- Download and install the Pulumi CLI on your workstation
- Log in to an S3-compatible backend
Deployment steps
For detailed deployment steps, see the README for your installer language: TypeScript or Go.
ECS-hosted system management and maintenance
Pulumi Cloud updates
When deploying Pulumi Cloud, it is recommended to pin the image tag to a specific version. See the installer’s README (TypeScript or Go) to set the imageTag configuration property for the installer to use.
When ready to update the Pulumi Cloud containers to use a different version, do the following:
pulumi loginto the self-managed (not self-hosted) backend as chosen above when installing the self-hosted service.pulumi config set imageTag {image tag}to set the version you want to use.pulumi upto deploy the updates.
Database maintenance
The installer configures the RDS (Aurora) database with automated backups, so no routine database maintenance is needed. Read replicas default to 0; set the numberDbReplicas configuration value in the installer if you need them.
Blob storage maintenance
The service automatically creates backups of checkpoint (state) files. However, you may want to enable AWS Backup to periodically back up the S3 buckets that the installer creates. The buckets have names of the form:
pulumi-checkpoints-XXXpulumi-policypacks-XXXpulumi-service-metadata-XXX