This file contains hidden or 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
| # Based on https://github.com/PrakashTrove/AWS-CodeBuild-NetCore/blob/master/buildspec.yml | |
| # AWS CodeBuild spec to run Entity Framework migrations before a deployment | |
| # In order to AWS CodeBuild has access to RDS, I had to manually setup a Inbound rule: | |
| # https://ctoasaservice.org/2019/01/23/aws-codebuild-and-access-to-rds/ | |
| version: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| dotnet: latest |
This file contains hidden or 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
| # Based on https://github.com/PrakashTrove/AWS-CodeBuild-NetCore/blob/master/buildspec.yml | |
| # AWS CodeBuild spec to build an Elastic Beanstalk artifact for AWS CodePipeline to deploy | |
| version: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| dotnet: latest | |
| pre_build: |
This file contains hidden or 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
| dotnet new solution | |
| dotnet new webapi -o Todo.Api | |
| dotnet new classlib -o Todo.Core | |
| dotnet sln add Todo.Api/Todo.Api.csproj Todo.Core/Todo.Core.csproj | |
| dotnet add Todo.Api/Todo.Api.csproj reference Todo.Core/Todo.Core.csproj |
This file contains hidden or 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
| import { Hub } from 'aws-amplify'; | |
| // Some HTTP request as an example that can be anywhere in your code | |
| fetch(SOME_URL) | |
| .then(function (response) { | |
| if (!response.ok) { | |
| console.log(`HTTP request succeed with unsuccessful response code of ${response.statusText}`); | |
| Hub.dispatch( | |
| 'error', | |
| { |
This file contains hidden or 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
| { | |
| "AWSTemplateFormatVersion":"2010-09-09", | |
| "Description":"Lambda resource stack creation using Amplify CLI", | |
| "Parameters":{ | |
| ... | |
| }, | |
| "Conditions":{ | |
| ... | |
| }, | |
| "Resources":{ |
This file contains hidden or 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
| { | |
| "AWSTemplateFormatVersion":"2010-09-09", | |
| "Description":"Lambda resource stack creation using Amplify CLI", | |
| "Parameters":{ | |
| ... | |
| "RetentionInDaysProd":{ | |
| "Type":"Number" | |
| }, | |
| "RetentionInDaysOther":{ | |
| "Type":"Number" |
This file contains hidden or 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
| { | |
| "AWSTemplateFormatVersion":"2010-09-09", | |
| "Description":"Lambda resource stack creation using Amplify CLI", | |
| "Parameters":{ | |
| "env":{ | |
| "Type":"String" | |
| }, | |
| "monitoringTopicsAlarmsTopicArn":{ | |
| "Type":"String" | |
| }, |
This file contains hidden or 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
| { | |
| "AWSTemplateFormatVersion":"2010-09-09", | |
| "Description":"Lambda resource stack creation using Amplify CLI", | |
| "Parameters":{ | |
| "env":{ | |
| "Type":"String" | |
| }, | |
| "monitoringTopicsAlarmsTopicArn":{ | |
| "Type":"String" | |
| } |
This file contains hidden or 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
| { | |
| "monitoring":{ | |
| "Topics":{ | |
| "service":"SNS", | |
| "providerPlugin":"awscloudformation" | |
| } | |
| }, | |
| "function":{ | |
| "MyFunction":{ | |
| "service":"Lambda", |
This file contains hidden or 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
| { | |
| "alarmsTopicName":"alarms", | |
| "alarmsSubscriptionEmailProd":"[email protected]", | |
| "alarmsSubscriptionEmailTest":"[email protected]" | |
| } |