Skip to content

vravikiran/AWS-External-App-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

  • The application retrieves application specific properties from an external configuration defined in AWS AppConfig.
  • No properties are defined in application.properties of the spring boot application. All required application properties are fetched from configuration defined in Aws AppConfig.
  • Data Source bean is created using the properties which are fetched from external configuration defined in AWS AppConfig.
  • Application details are fetched from the properties which are fetched from external configuration defined in AWS AppConfig.

Prerequisites

  • Java 17.0 or more
  • Maven
  • MySQL database / any relational database
  • AWS Account

Configure AWS Credentials

  • Create an IAM user and generate access keys.
  • Save the "Access Key" and "Secret Key" generated from access keys and configure them AWS profile in local environment/System using AWS CLI

Create an IAM role

  • Create an IAM role "mtb-task-exec-role". Attach permissions to access "AWS AppConfig" in the created role.

Define application and its configuration in AWS App Config

Screenshot 2025-04-16 at 05 00 36

  • Create configuration profile “showcase_sbc_skills” in the above defined application

Screenshot 2025-04-16 at 05 01 25

  • Select "AWS AppConfig hosted configuration" in configuration definition
  • Update application related properties in configuration profile using freeform configuration in “yaml” format

Screenshot 2025-04-16 at 05 02 01

Screenshot 2025-04-16 at 05 02 44

  • Define an environment “local” within an application.

Screenshot 2025-04-16 at 05 03 37

  • Deploy the configuration defined in application to the above created environment.

Screenshot 2025-04-16 at 05 03 53

  • Once the deployment is completed, above details are used in java application and retrieve the properties

About

Retrieves application related properties from external configuration defined in AWS AppConfig

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published