wooden-zebra-82047
05/15/2024, 12:33 AMpulumi up
and run it again, it gets stuck earlier this time on
pulumi:pulumi:Stack AstralPlagueECS-dev running...
└─ awsx:ecr:Image lfs-rs-image Building image 'D:lfs-rs-mainlfs-rs-main'...
The following is the code I'm using:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
// Create an ECR repository
const repo = new aws.ecr.Repository("astral-plague-repository");
// Build and publish the Docker image to the ECR repository
const image = new awsx.ecr.Image("lfs-rs-image", {
repositoryUrl: repo.repositoryUrl,
path: "D:\lfs-rs-main\lfs-rs-main", // the source of my image
});
// Create an ECS cluster
const cluster = new aws.ecs.Cluster("AstralPlagueLFSCluster");
// Define the task definition with the container configuration
const taskDefinition = new awsx.ecs.FargateTaskDefinition("APLFSRudolfsTask", {
containers: {
myContainer: {
image: image.imageUri, // Use the image from ECR
cpu: 512,
memory: 1024,
essential: true,
name: "APLFSRudolfsTask", // Add the required 'name' property
entryPoint: [
"/tini", "--", "/lfs-rs",
"--cache-dir", "/data/",
"--max-cache-size", "4GB",
"--log-level", "info",
"--lock-backend", "dynamodb",
"--lock-dynamodb-table", "my-table",
"--github-auth",
"s3", "--bucket", "my-bucket",
],
},
},
});
// Create a Fargate service to run the task definition
const service = new awsx.ecs.FargateService("astralService",
{
cluster: cluster.arn,
taskDefinition: taskDefinition.taskDefinition.arn, // Use the ARN of the task definition
desiredCount: 1,
assignPublicIp: true,
// Define other service properties if needed
});
// Export the cluster name, service name, and repository URL
export const clusterName = cluster.name;
export const serviceName = service;
export const repositoryUrl = repo.repositoryUrl;
little-cartoon-10569
05/15/2024, 1:02 AMconst image = new awsx.ecr.Image("lfs-rs-image", {
repositoryUrl: repo.repositoryUrl,
path: "D:\lfs-rs-main\lfs-rs-main", // the source of my image
});
https://www.pulumi.com/registry/packages/awsx/api-docs/ecr/image/little-cartoon-10569
05/15/2024, 1:04 AMwooden-zebra-82047
05/15/2024, 1:06 AMlittle-cartoon-10569
05/15/2024, 1:07 AMwooden-zebra-82047
05/15/2024, 1:08 AMlittle-cartoon-10569
05/15/2024, 1:08 AMlittle-cartoon-10569
05/15/2024, 1:09 AMlittle-cartoon-10569
05/15/2024, 1:09 AMwooden-zebra-82047
05/15/2024, 1:10 AMwooden-zebra-82047
05/15/2024, 2:29 AMlittle-cartoon-10569
05/15/2024, 2:31 AMpath
property in your input arg? Is that showing up as an error in your IDE?wooden-zebra-82047
05/15/2024, 2:41 AM