05/05/2020, 10:06 PM
• I get the same errors during the initial deployment as well as updates. • Other resources are consistently deploying without issues • Pulumi fails on the exception, then AWS successfully deploys the Lambda, leaving Pulumi without the correct state • Deployments using the same stack, branch, and AWS credentials from other machines/connections do not face the same error • I started having this issue with an older 1.x version and have since updated to 2.1.0. • There was a thread started a few days ago that looks like the same issue.
doesn't solve the issue. Here is the index.js code that I'm producing the error with
Copy code
const aws = require( '@pulumi/aws' );
const awsx = require( '@pulumi/awsx' );

const api = new awsx.apigateway.API( 'some-name', {
	routes: [ {
		path: '/something',
		method: 'POST',
		eventHandler: new aws.lambda.CallbackFunction( 'lambda-test', {
			memorySize: 128,
			callback: ( event ) => {
				console.log( event );
			description: 'Some description',
		} ),
	} ],
} );

return {
	url: api.url,