Created
June 15, 2020 07:57
-
-
Save darko-mesaros/a1cd154c55e1d44df0910f2227014920 to your computer and use it in GitHub Desktop.
Create AppConfig configuration in Parameter Store
This file contains 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: > | |
https://twitch.tv/ruptwelve | |
Parameters: | |
NumOfRows: | |
Type: String | |
Description: Number of Rows for your config | |
Default: please-change-me | |
Resources: | |
### PARAMETER STORE ### | |
# Here we declare the parameter in the parameter store | |
GospodinParametar: | |
Type: AWS::SSM::Parameter | |
Properties: | |
Name: number-of-rows | |
Type: String | |
Value: !Ref NumOfRows | |
Description: Parameter for AppConfig - Limits the number of rows shown. | |
### APPCONFIG ### | |
# Create the AppConfig application | |
AppConfigAplikacija: | |
Type: AWS::AppConfig::Application | |
Properties: | |
Name: VeomaBitnaAplikacija | |
Description: A Super important Appconfig application | |
# Defining the appconfig profile | |
# to take the value out of the parameter store | |
OsnovniKonfiguracijskiProfil: | |
Type: AWS::AppConfig::ConfigurationProfile | |
Properties: | |
ApplicationId: !Ref AppConfigAplikacija | |
Name: RowLimitation | |
Description: Limit the number of rows shown | |
LocationUri: | |
Fn::Sub: | |
- "ssm-parameter://${ParameterName}" | |
- ParameterName: !Ref GospodinParametar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment