pulumi-aws-native icon indicating copy to clipboard operation
pulumi-aws-native copied to clipboard

AWS Native running slower than AWS Classic

Open pierskarsenbarg opened this issue 3 years ago • 4 comments

When deploying resources with AWS Native, it feels considerably slower than with the AWS Classic provider.

First test: Running this program with debug:

import * as aws from "@pulumi/aws";
import * as awsnative from "@pulumi/aws-native";

const bucket = new aws.s3.Bucket("my-bucket");
const nativeBucket = new awsnative.s3.Bucket("nativebucket");

Generated this log file: out.txt

pierskarsenbarg avatar Nov 10 '21 15:11 pierskarsenbarg

Essentially, the log shows that this delay is on the Cloud Control API side:

  • 15:36:41 We send CreateResource
  • 15:36:42 We poll GetResourceRequestStatus for the first time and get IN_PROGRESS
  • We keep polling...
  • 15:37:09 is the last GetResourceRequestStatus that is still in progress
  • 15:37:11 GetResourceRequestStatus returns SUCCESS and we are done

I will raise this with AWS folks.

mikhailshilkov avatar Nov 11 '21 12:11 mikhailshilkov

Has this performance issue been observed with any other resources or is it only S3 buckets which have been noticably slower?

danielrbradley avatar Jan 12 '22 09:01 danielrbradley

I'll give it a go on others. I chose an S3 bucket because it's one of the simplest resources to create

pierskarsenbarg avatar Jan 12 '22 09:01 pierskarsenbarg

Creating and deleting lambdas is really slow in native. Anecdotally it takes <10 seconds on classic, and 1-3 minutes on native.

passcod avatar May 23 '23 05:05 passcod