forked from radius-project/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update eShop to use Recipes (radius-project#590)
* Replace eShop with eShop on recipes * PR * Fix * Test * PR * oops * Updates * PR * PR * PR * PR comments * PR comments * fixing * again * fix * rewind * PR * PR * Simplify env registration Signed-off-by: Aaron Crawfis <[email protected]> * Make registry a parameter Signed-off-by: Aaron Crawfis <[email protected]> * Update test Signed-off-by: Aaron Crawfis <[email protected]> * Update namespaces Signed-off-by: Aaron Crawfis <[email protected]> * Fix tag Signed-off-by: Aaron Crawfis <[email protected]> * Update env names Signed-off-by: Aaron Crawfis <[email protected]> * Fix namespaces Signed-off-by: Aaron Crawfis <[email protected]> * Fix recipe Signed-off-by: Aaron Crawfis <[email protected]> --------- Signed-off-by: Aaron Crawfis <[email protected]> Co-authored-by: Aaron Crawfis <[email protected]> Signed-off-by: Will Tsai <[email protected]>
- Loading branch information
Showing
27 changed files
with
618 additions
and
1,742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import radius as rad | ||
|
||
@description('Account ID of the AWS account resources should be deployed in') | ||
param awsAccountId string | ||
|
||
@description('AWS region that resources should be deployed in') | ||
param awsRegion string | ||
|
||
@description('Name of your EKS cluster') | ||
param eksClusterName string | ||
|
||
resource environment 'Applications.Core/environments@2023-10-01-preview' = { | ||
name: 'aws' | ||
properties: { | ||
compute: { | ||
kind: 'kubernetes' | ||
resourceId: 'self' | ||
namespace: 'aws' | ||
} | ||
providers: { | ||
aws: { | ||
scope: '/planes/aws/aws/accounts/${awsAccountId}/regions/${awsRegion}' | ||
} | ||
} | ||
recipes: { | ||
'Applications.Datastores/sqlDatabases': { | ||
default: { | ||
templateKind: 'bicep' | ||
templatePath: 'ghcr.io/radius-project/recipes/aws/sqldatabases:latest' | ||
parameters: { | ||
eksClusterName: eksClusterName | ||
} | ||
} | ||
} | ||
'Applications.Datastores/redisCaches': { | ||
default: { | ||
templateKind: 'bicep' | ||
templatePath: 'ghcr.io/radius-project/recipes/aws/rediscaches:latest' | ||
parameters: { | ||
eksClusterName: eksClusterName | ||
} | ||
} | ||
} | ||
// Use containerized RabbitMQ instead of Amazon SQS | ||
// https://github.com/radius-project/bicep-types-aws/blob/main/docs/reference/limitations.md | ||
'Applications.Messaging/rabbitMQQueues': { | ||
default: { | ||
templateKind: 'bicep' | ||
templatePath: 'ghcr.io/radius-project/recipes/local-dev/rabbitmqqueues:latest' | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import radius as rad | ||
|
||
@description('The name of the Azure resource group where Azure resources will be deployed.') | ||
param azureResourceGroup string | ||
|
||
@description('The Azure subscription ID where Azure resources will be deployed.') | ||
param azureSubscriptionId string | ||
|
||
resource environment 'Applications.Core/environments@2023-10-01-preview' = { | ||
name: 'azure' | ||
properties: { | ||
compute: { | ||
kind: 'kubernetes' | ||
resourceId: 'self' | ||
namespace: 'azure' | ||
} | ||
providers: { | ||
azure: { | ||
scope: '/subscriptions/${azureSubscriptionId}/resourceGroups/${azureResourceGroup}' | ||
} | ||
} | ||
recipes: { | ||
'Applications.Datastores/sqlDatabases': { | ||
default: { | ||
templateKind: 'bicep' | ||
templatePath: 'ghcr.io/radius-project/recipes/azure/sqldatabases:latest' | ||
} | ||
} | ||
'Applications.Datastores/redisCaches': { | ||
default: { | ||
templateKind: 'bicep' | ||
templatePath: 'ghcr.io/radius-project/recipes/azure/rediscaches:latest' | ||
} | ||
} | ||
'Applications.Core/extenders': { | ||
servicebus: { | ||
templateKind: 'bicep' | ||
templatePath: 'ghcr.io/radius-project/recipes/azure/extender-servicebus:latest' | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.