From ac8179bb8090732e5df23d8defc10d774ffa4d75 Mon Sep 17 00:00:00 2001 From: ktong Date: Sun, 4 Feb 2024 08:59:38 -0800 Subject: [PATCH] add provider/appconfig --- .github/dependabot.yml | 7 +++++++ .github/workflows/benchmark.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/tag.yml | 2 +- .github/workflows/test.yml | 2 +- CHANGELOG.md | 1 + README.md | 1 + provider/appconfig/go.mod | 3 +++ 9 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 provider/appconfig/go.mod diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9bef3d4c..52e87704 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -22,6 +22,13 @@ updates: schedule: interval: daily + - package-ecosystem: gomod + directory: /provider/appconfig + labels: + - Skip-Changelog + schedule: + interval: daily + - package-ecosystem: github-actions directory: / labels: diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index dbac7c1e..093f7910 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -11,7 +11,7 @@ jobs: benchmark: strategy: matrix: - module: [ '', 'provider/file', 'provider/pflag' ] + module: [ '', 'provider/file', 'provider/pflag', 'provider/appconfig' ] name: Benchmark runs-on: ubuntu-latest steps: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b2c20d4b..192b286f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,7 +11,7 @@ jobs: coverage: strategy: matrix: - module: [ '', 'provider/file', 'provider/pflag' ] + module: [ '', 'provider/file', 'provider/pflag', 'provider/appconfig' ] name: Coverage runs-on: ubuntu-latest steps: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4a34e8e4..7c6b2ffb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: lint: strategy: matrix: - module: [ '', 'provider/file', 'provider/pflag' ] + module: [ '', 'provider/file', 'provider/pflag', 'provider/appconfig' ] name: Lint runs-on: ubuntu-latest steps: diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index b11b3cc1..a8901fed 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -10,7 +10,7 @@ jobs: tag: strategy: matrix: - module: [ 'provider/file', 'provider/pflag' ] + module: [ 'provider/file', 'provider/pflag', 'provider/appconfig' ] name: Submodules runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 415b358d..df0d20cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: test: strategy: matrix: - module: [ '', 'provider/file', 'provider/pflag' ] + module: [ '', 'provider/file', 'provider/pflag', 'provider/appconfig' ] run-on: [ 'ubuntu', 'macOS', 'windows' ] go-version: [ 'stable' ] name: Test diff --git a/CHANGELOG.md b/CHANGELOG.md index 512cffe1..a0fb0779 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - add Config.Explain to provide information about how Config resolve each value from loaders (#78). - add Default to get the default Config (#81). +- add AWS AppConfig Loader (#92). ### Changed diff --git a/README.md b/README.md index c15be1c3..1074e4d6 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ There are providers for the following configuration sources: - [`file`](provider/file) loads configuration from a file. - [`flag`](provider/flag) loads configuration from flags. - [`pflag`](provider/pflag) loads configuration from [spf13/pflag](https://github.com/spf13/pflag). +- [`appconfig`](provider/appconfig) loads configuration from [AWS AppConfig](https://aws.amazon.com/systems-manager/features/appconfig/). ## Inspiration diff --git a/provider/appconfig/go.mod b/provider/appconfig/go.mod new file mode 100644 index 00000000..4d8dba38 --- /dev/null +++ b/provider/appconfig/go.mod @@ -0,0 +1,3 @@ +module github.com/nil-go/konf/provider/appconfig + +go 1.21