sparse-intern-71089
02/17/2021, 9:37 PMlittle-cartoon-10569
02/17/2021, 9:55 PMgentle-monitor-55086
02/17/2021, 10:31 PMlittle-cartoon-10569
02/17/2021, 10:35 PMopt
parameter, not the args
.little-cartoon-10569
02/17/2021, 10:36 PMlittle-cartoon-10569
02/17/2021, 10:38 PMgentle-monitor-55086
02/17/2021, 10:39 PMdeleting urn:pulumi:company1::myCompany-pulumi::aws:apigateway:x:API$aws:iam/policy:Policy::hello-only-imported927f543c-LambdaFullAccess: 1 error occurred:
* Error deleting IAM policy arn:aws:iam::863178862591:policy/hello-only-imported927f543c-LambdaFullAccess-e34ce24: DeleteConflict: Cannot delete a policy attached to entities.
status code: 409, request id: 80183c5f-327d-42d6-9c27-1ab4b499fab9
gentle-monitor-55086
02/17/2021, 10:39 PMgentle-monitor-55086
02/17/2021, 10:41 PMand i guess what i meant is i can't use dependsOn because the lambdas are just functions, not resources that are defined yet since they don't get defined untilactually builds the routes.awsx.apigateway.API
ie.
eventHandler: routes.helloHandler,
}
],
},
{ dependsOn: [routes.helloHandler] }
^ the depeondsOn is complaining herelittle-cartoon-10569
02/17/2021, 10:41 PMdependsOn
opt for you...gentle-monitor-55086
02/17/2021, 10:42 PMlittle-cartoon-10569
02/17/2021, 10:43 PMlittle-cartoon-10569
02/17/2021, 10:45 PMpulumi state delete
and manually deleting things might have to be the way to go...gentle-monitor-55086
02/17/2021, 10:45 PMlittle-cartoon-10569
02/17/2021, 10:46 PMgentle-monitor-55086
02/17/2021, 10:47 PMgentle-monitor-55086
02/17/2021, 10:49 PMweird i wonder if it's a difference on the aws api.I went directly to iam roles and dropped the roles and they went away just fine... no complaints about disconnecting policies or entities or anything.
little-cartoon-10569
02/17/2021, 10:56 PMdependsOn
. If there had been a dependsOn
, it would have deleted them sequentially (= correctly).gentle-monitor-55086
02/17/2021, 11:02 PMlittle-cartoon-10569
02/17/2021, 11:03 PMgentle-monitor-55086
02/17/2021, 11:03 PMthat's what i'm going to do to see if i can reproduce the issue
gentle-monitor-55086
02/17/2021, 11:03 PMlittle-cartoon-10569
02/17/2021, 11:04 PMgentle-monitor-55086
02/17/2021, 11:04 PM