-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Labels
Description
Version: Deno 2.1.2
AWS CDK: 2.171.1
When trying to deploy infrastructure using the cdk deploy command, the process hangs when uploading assets to the CDK deplloyment asset S3 bucket. This works fine if using Node.js.
❯ cdk deploy
✨ Synthesis time: 0.4s
my-stack: start: Building 5dc4439c955fa5cef985fdc3a01dc6df93ad4777214f12b9027aba5873263b9f:nnnnnnnnnnnn-eu-west-1
my-stack: success: Built 5dc4439c955fa5cef985fdc3a01dc6df93ad4777214f12b9027aba5873263b9f:nnnnnnnnnnnn-eu-west-1
my-stack: start: Publishing 5dc4439c955fa5cef985fdc3a01dc6df93ad4777214f12b9027aba5873263b9f:nnnnnnnnnnnn-eu-west-1
(no progress from here...)
AWS CDK installed as global install: deno install -g --name cdk npm:aws-cdk
cdk.json:
{
"app": "deno run -A main.ts"
}
deno.json:
{
"tasks": {
"dev": "deno run --watch main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1",
"aws-cdk-lib": "npm:aws-cdk-lib@^2.171.1"
}
}
main.ts:
import * as cdk from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as process from 'node:process';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'my-stack', {
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
},
});
const vpc = ec2.Vpc.fromLookup(stack, 'my-vpc', {
isDefault: true,
});
const instance = new ec2.Instance(stack, 'my-ec2', {
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO),
machineImage: ec2.MachineImage.latestAmazonLinux2023(),
vpc,
});gdtroszak, nktpro, taseenb and jflatow