Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Sep 9, 2024
1 parent e423dd2 commit bd0da6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions platform/src/components/aws/cluster.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
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";
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 = {
Expand Down
4 changes: 2 additions & 2 deletions platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand Down Expand Up @@ -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`],
Expand Down
2 changes: 1 addition & 1 deletion platform/src/components/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}`,
);
Expand Down

0 comments on commit bd0da6a

Please sign in to comment.