AWS Configuration
AWS supports MongoDB and PostgreSQL database. Following are the AWS configurations:
| PROPERTY | DEFAULT VALUE | DESCRIPTION |
|---|---|---|
| Environment Setup | ||
| AWS_ACCESS_KEY_ID | Developer's credentials | AWS Account Access Id |
| AWS_SECRET_ACCESS_KEY | Developer's credentials | AWS Account Secret Key |
| AWS_REGION | Developer's credentials | AWS Account Region |
| DEPLOYMENT_ENVIRONMENT |
If multiple instances of Microservice are to be deployed in the same region, then set this property [Should use only lower case letters in-order to comply with AWS resources naming convention] Example: If the property is set as 'dev', the bucket name will be 'dev-ms-savingspot-package'. |
|
| aws_account_id | Developer's credentials | |
| S3_BUCKET_ID | ms-savingspot |
S3 bucket is an object storage service. The application JAR file will be copied into the S3 bucket. |
| CLOUDWATCH | ms-savingspot-cloudwatchinvoke | Ping services will be created for each lambda function with the provided name. |
| PDP Configuration | ||
| PDP_CONFIG | classpath:xacml/pdp-config.xml |
Mapping the PDP-callback configuration file available in the classpath. XACML Config file path needs to be set in the property. |
| PDP_RESOURCE_TYPE | API |
The value that is set in the XAML config file needs to be provided. Resource type is used to identify the policy set in the XAML config. |
| PDP_RESOURCE_MANAGER | SAVINGSPOT |
The value that is set in the XACML config file needs to be provided. Resource Manager is used to identify the policy set in the XAML config. |
| MongoDB Configuration | ||
| MONGODB_DBNAME | ms_savingspot | Name of the database |
| MONGODB_CONNECTIONSTR | <MONGODB_CONNECTION_URL> | URL to connect to the MongoDB instance |
| PostgreSQL Database Configuration | ||
| DATABASE_KEY | PostgreSQL | DatabaseKey |
| DATABASE_NAME | ms_savingspot | Name of the database |
| POSTGRESQL_USERNAME | root | DB Username |
| POSTGRESQL_PASSWORD | password | DB Password |
In this topic