Skip to content

Commit f571949

Browse files
committed
handle error during AWS resource group creation
1 parent 8a3a60d commit f571949

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cloud/aws/deploy/deploy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ func (a *NitricAwsPulumiProvider) Pre(ctx *pulumi.Context, resources []*pulumix.
234234
}`, tags.GetResourceNameKey(a.StackId)),
235235
},
236236
})
237+
if err != nil {
238+
return fmt.Errorf("failed to create resource group: %w", err)
239+
}
237240

238241
databases := lo.Filter(resources, func(item *pulumix.NitricPulumiResource[any], idx int) bool {
239242
return item.Id.Type == resourcespb.ResourceType_SqlDatabase

0 commit comments

Comments
 (0)