Seth Geoghegan
12/30/2021, 4:23 PMnpm sst remove
and it's been stuck in the DELETE_IN_PROGRESS
stage for about 18 minutes while trying to remove the resources related to the SST.Script construct.new sst.Script(this, "db-script", {
onCreate: "src/script.handler",
onDelete: "src/script.handler",
defaultFunctionProps: {
environment: {
secretArn: props.databaseSecretArn,
databaseName: scope.stage
},
vpc: Vpc.fromLookup(this, 'VPC', { vpcName: "stage-vpc" }),
permissions:[
new iam.PolicyStatement({
actions: ["secretsmanager:GetSecretValue"],
effect: iam.Effect.ALLOW,
resources: ["arn:aws:secretsmanager:us-east-1:XXXXXXXXX:secret:*"],
}),
]
},
});
Derek Kershner
12/30/2021, 4:28 PMSeth Geoghegan
12/30/2021, 4:34 PMDerek Kershner
12/30/2021, 4:36 PMthdxr
12/30/2021, 4:43 PMSeth Geoghegan
12/30/2021, 5:24 PMonCreate
is working fine, but onDelete
is having trouble. Likely something to do with VPC configuration. Might be worth running DB migration scripts locally for the time being.