aws / integrations-on-dotnet-aspire-for-aws

This repositry contains the integrations with .NET Aspire for AWS.
MIT No Attribution
29 stars 4 forks source link

Options and guidelines to deploy code on AWS #6

Open McDoit opened 1 week ago

McDoit commented 1 week ago

Would be nice to have some options to deploy a C# project on AWS

Maybe something like .DeployAsLambda, .DeployAsAppRunner, .DeployAsFargate etc

They can in turn use the CDK way of adding stacks or constructs to the AppHost

Or have I missed some more obvious way to do this?

normj commented 1 week ago

We haven't gotten as far as thinking about deployment yet but I can see do something like that on the project resources adding an extension method that gave manifest and later CDK hints what should be used as the compute target.

davidfowl commented 1 week ago

We have a model for this in the manifest that was invented for Aspire 9. project.v1 and container.v1 resources can have a nested "deployment" section that can embed a cloudformation or azure.bicep resource type.

e.g. https://github.com/dotnet/aspire/blob/c0ff16dff269c0d3409c790e287e54e766ba89d9/playground/AzureContainerApps/AzureContainerApps.AppHost/aspire-manifest.json#L108-L124

The deployment tool uses this to deploy this compute resource using the underlying deployment resource type.