Closed viveklak closed 1 year ago
Currently failing locally with the following:
Previewing update (dev) View Live: https://app.pulumi.com/vivek/simple-cs/dev/previews/dd9f7806-c966-4c74-a3eb-625a4f9e4333 Type Name Plan Info + pulumi:pulumi:Stack simple-cs-dev create 1 error + ├─ aws:iam:Role mylambda-role create + ├─ aws:iam:RolePolicy mylambda-policy create + ├─ aws:lambda:Function lambda create + └─ apigateway:index:RestAPI api create + ├─ aws:apigateway:RestApi api create + ├─ aws:apigateway:Deployment api create + ├─ aws:lambda:Permission api-fa520765 create + └─ aws:apigateway:Stage api create Diagnostics: pulumi:pulumi:Stack (simple-cs-dev): error: Running program '/Users/vivek/code/pulumi-aws-apigateway/examples/simple-cs/bin/Debug/netcoreapp3.1/simple-cs.dll' failed with an unhandled exception: System.InvalidCastException: Unable to cast object of type 'Pulumi.DependencyResource' to type 'Pulumi.Aws.ApiGateway.Deployment'. at void Pulumi.Serialization.OutputCompletionSource<T>.SetValue(OutputData<object> data) at async Task Pulumi.Deployment.CompleteResourceAsync(Resource resource, bool remote, Func<string, Resource> newDependency, ResourceArgs args, ResourceOptions options, ImmutableDictionary<string, IOutputCompletionSource> completionSources) at async Task<OutputData<object>> Pulumi.Output<T>.Pulumi.IOutput.GetDataAsync() at async Task<object> Pulumi.Serialization.Serializer.SerializeAsync(string ctx, object prop, bool keepResources, bool keepOutputValues) at async Task<RawSerializationResult> Pulumi.Deployment.SerializeFilteredPropertiesRawAsync(string label, IDictionary<string, object> args, Predicate<string> acceptKey, bool keepResources, bool keepOutputValues) at async Task<SerializationResult> Pulumi.Deployment.SerializeFilteredPropertiesAsync(string label, IDictionary<string, object> args, Predicate<string> acceptKey, bool keepResources, bool keepOutputValues) at async Task<Struct> Pulumi.Deployment.SerializeAllPropertiesAsync(string label, IDictionary<string, object> args, bool keepResources, bool keepOutputValues) at async Task Pulumi.Deployment.RegisterResourceOutputsAsync(Resource resource, Output<IDictionary<string, object>> outputs)
Currently failing locally with the following: