From 9b8e0c47ca8a926020c60a3dcb4e53f156f1fea7 Mon Sep 17 00:00:00 2001 From: praveen Date: Fri, 23 Feb 2024 23:14:07 +0530 Subject: [PATCH 1/2] fix/cdk-db-version: upgraded the db engine version of postgres and mysql --- README.md | 29 +++++++++++++-------- internal/utils/utils.go | 6 ++--- pickyhelpers/sources/create_infra_source.go | 4 +-- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 8020c89..7feb3e9 100644 --- a/README.md +++ b/README.md @@ -41,16 +41,18 @@ It contains a number of Wednesd ## Table of contents -1. [Overview](#overview) -2. [Tech Stacks](#tech-stacks) -3. [Pre-requisites](#pre-requisites) -4. [Installation](#installation) -5. [Creating a Project](#creating-a-project) -6. [User Guide](#user-guide) -7. [Project Structure](#project-structure) -8. [Feedback](#feedback) -9. [License](#license) -10. [Future Plans](#future-plans) +- [Table of contents](#table-of-contents) +- [Overview](#overview) +- [Tech Stacks](#tech-stacks) +- [Setup and Configuration.](#setup-and-configuration) + - [Pre-requisites](#pre-requisites) + - [Installation](#installation) +- [Creating a Project](#creating-a-project) +- [User Guide](#user-guide) +- [Project Structure](#project-structure) +- [Feedback](#feedback) +- [License](#license) +- [Future Plans](#future-plans) ## Overview @@ -72,7 +74,7 @@ This tool will have support for production applications using the following tech **Web:** -- [React JS](https://gitub.com/wednesday-solutions/react-template) +- [React JS](https://github.com/wednesday-solutions/react-template) - [Next JS](https://github.com/wednesday-solutions/nextjs-template) **Backend:** @@ -109,6 +111,11 @@ AWS Secret Access Key: MYSECRETKEY Default region name [us-west-2]: MYAWSREGION Default output format [None]: ``` +- Create a repository in your [AWS ECR](https://aws.amazon.com/ecr/). + +```bash + $ aws ecr create-repository --repository-name cdk-hnb659fds-container-assets-MYAWSACCOUNTID-MYAWSREGION +``` ### Installation diff --git a/internal/utils/utils.go b/internal/utils/utils.go index deee399..3319d87 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -222,9 +222,9 @@ func ReadJsonDataInSstOutputs() map[string]interface{} { func GetOutputsBackendObject(environment, stackDir string) TaskDefinitionDetails { camelCaseDir := strcase.ToCamel(stackDir) jsonData := ReadJsonDataInSstOutputs() - if jsonData == nil { - errorhandler.CheckNilErr(fmt.Errorf("outputs.json is not valid.")) - } + // if jsonData == nil { + // errorhandler.CheckNilErr(fmt.Errorf("outputs.json is not valid.")) + // } var td TaskDefinitionDetails td.Environment = environment td.EnvName = GetShortEnvName(environment) diff --git a/pickyhelpers/sources/create_infra_source.go b/pickyhelpers/sources/create_infra_source.go index 34cd4b4..a0449e9 100644 --- a/pickyhelpers/sources/create_infra_source.go +++ b/pickyhelpers/sources/create_infra_source.go @@ -153,13 +153,13 @@ func BackendStackSource(database, dirName, environment string) string { if database == constants.PostgreSQL { dbEngineVersion = "PostgresEngineVersion" dbPortNumber = utils.FetchExistingPortNumber(dirName, constants.PostgresPort) - dbEngine = "DatabaseInstanceEngine.postgres({\n\t\t\t\tversion: PostgresEngineVersion.VER_14_2,\n\t\t\t})" + dbEngine = "DatabaseInstanceEngine.postgres({\n\t\t\t\tversion: PostgresEngineVersion.VER_14_8,\n\t\t\t})" dbUri = "`postgres://${username}:${password}@${database.dbInstanceEndpointAddress}/${dbName}`" dbHost = "POSTGRES_HOST: database.dbInstanceEndpointAddress" } else if database == constants.MySQL { dbEngineVersion = "MysqlEngineVersion" dbPortNumber = utils.FetchExistingPortNumber(dirName, constants.MysqlPort) - dbEngine = "DatabaseInstanceEngine.mysql({\n\t\t\t\tversion: MysqlEngineVersion.VER_8_0_31,\n\t\t\t})" + dbEngine = "DatabaseInstanceEngine.mysql({\n\t\t\t\tversion: MysqlEngineVersion.VER_8_0_34,\n\t\t\t})" dbUri = "`mysql://${username}:${password}@${database.dbInstanceEndpointAddress}/${dbName}`" dbHost = "MYSQL_HOST: database.dbInstanceEndpointAddress" } From 1f07679de944cd92c06da5742eecb656354b0b77 Mon Sep 17 00:00:00 2001 From: praveen Date: Fri, 23 Feb 2024 23:20:35 +0530 Subject: [PATCH 2/2] chore: update go version --- .github/workflows/ci.yml | 2 +- .github/workflows/product-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84f2e1d..c14c969 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: "1.21" cache: false - name: Install pre-commit dependencies diff --git a/.github/workflows/product-release.yml b/.github/workflows/product-release.yml index 5f96df2..b8e9f81 100644 --- a/.github/workflows/product-release.yml +++ b/.github/workflows/product-release.yml @@ -14,7 +14,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20 + go-version: 1.21 - name: Actions Ecosystem Action Get Merged Pull Request uses: actions-ecosystem/action-get-merged-pull-request@v1.0.1