Abstraction for resources needed when using AWS container services.
This repo delivers a set of components to abstract the details related to:
- Creating a docker image and pushing it to AWS ECR.
- Deploy ECS using the docker image.
- Do both the image build and deployment as a single component.
- dockerFilePath: Path to local folder containing the app and Dockerfile.
- cpu (Optional): CPU capacity. Defaults to 256 (i.e. 0.25 vCPU).
- memory (Optional): Memory capacity. Defaults to 512 (i.e. 0.5GB).
- loadbalancerDnsName: The DNS name for the loadbalancer fronting the app.
- repositoryPath (appImage): The path for the ECR.
- imageRef (appImage): The URL for the image that was created and uploade to ECR.
Add the following to your Pulumi.yaml file:
Note: If no version is specified, the latest version will be used.
packages:
container-services: https://github.com/pulumi-pequod/component-container-services[@v0.9.0]
from pulumi_pequod_container_services import AppImageDeploy, AppImageDeployArgs
app_deployment = AppImageDeploy(f"app-image", AppImageArgs(
docker_file_path="./app"
))
import { AppImageDeploy } from "@pulumi-pequod/container-services";
const appDeployment = new AppImageDeploy(baseName, {dockerFilePath: "./app"})
using PulumiPequod.ContainerServices;
var appDeployment = new AppImageDeploy("stack-settings", { DockerFilePath: "./app" });
appImageDeploy:
type: container-services:AppImageDeploy
properties:
dockerFilePath: ./app