in src/Aspire.Hosting.AWS/Provisioning/CDKStackResourceProvisioner.cs [23:43]
private static Task ProvisionCDKStackAssetsAsync(StackResource resource, ILogger logger)
{
// Currently CDK Stack Assets like S3 and Container images are not supported. When a stack contains those assets
// we stop provisioning as it can introduce unwanted issues.
if (!resource.TryGetStackArtifact(out var artifact))
{
throw new AWSProvisioningException("Failed to provision stack assets. Could not retrieve stack artifact.");
}
if (!artifact.Dependencies
.OfType<AssetManifestArtifact>()
.Any(dependency =>
dependency.Contents.Files?.Count > 1
|| dependency.Contents.DockerImages?.Count > 0))
{
return Task.CompletedTask;
}
logger.LogError("File or container image assets are currently not supported");
throw new AWSProvisioningException("Failed to provision stack assets. Provisioning file or container image assets are currently not supported.");
}