diff --git a/platform/src/components/aws/cluster.ts b/platform/src/components/aws/cluster.ts index 67d0cad44..a79ad9669 100644 --- a/platform/src/components/aws/cluster.ts +++ b/platform/src/components/aws/cluster.ts @@ -1,5 +1,4 @@ import { ComponentResourceOptions } from "@pulumi/pulumi"; -import * as docker from "@pulumi/docker"; import { Component, Transform, transform } from "../component"; import { Input } from "../input"; import { Dns } from "../dns"; @@ -7,7 +6,6 @@ import { FunctionArgs } from "./function"; import { Service } from "./service"; import { RETENTION } from "./logging.js"; import { cloudwatch, ec2, ecs, iam, lb } from "@pulumi/aws"; -import { Vpc } from "./vpc"; import { ImageArgs } from "@pulumi/docker-build"; export const supportedCpus = { diff --git a/platform/src/components/aws/function.ts b/platform/src/components/aws/function.ts index 6e1e248b8..85a6bbf3f 100644 --- a/platform/src/components/aws/function.ts +++ b/platform/src/components/aws/function.ts @@ -37,7 +37,7 @@ import { import { Permission, permission } from "./permission.js"; import { Vpc } from "./vpc.js"; import { buildPython, buildPythonContainer } from "../../runtime/python.js"; -import * as docker_build from "@pulumi/docker-build"; +import { Image } from "@pulumi/docker-build"; import { rpc } from "../rpc/rpc.js"; /** @@ -1617,7 +1617,7 @@ export class Function extends Component implements Link.Linkable { // build image //aws-python-container::sst:aws:Function::MyPythonFunction - return new docker_build.Image( + return new Image( `${name}Image`, { // tags: [$interpolate`${bootstrapData.assetEcrUrl}:latest`], diff --git a/platform/src/components/component.ts b/platform/src/components/component.ts index fd5bc2459..77fbaf513 100644 --- a/platform/src/components/component.ts +++ b/platform/src/components/component.ts @@ -59,10 +59,10 @@ export class Component extends ComponentResource { !args.name.startsWith(args.opts.parent!.__name) ) { throw new Error( - // @ts-expect-error `In "${name}" component, the logical name of "${args.name}" (${ args.type }) is not prefixed with parent's name ${ + // @ts-expect-error args.opts.parent!.__name }`, );