You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-appconfig-alpha/README.md
+123-82
Original file line number
Diff line number
Diff line change
@@ -18,37 +18,87 @@
18
18
19
19
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
20
20
21
-
Use AWS AppConfig, a capability of AWS Systems Manager, to create, manage, and quickly deploy application configurations. A configuration is a collection of settings that influence the behavior of your application. You can use AWS AppConfig with applications hosted on Amazon Elastic Compute Cloud (Amazon EC2) instances, AWS Lambda, containers, mobile applications, or IoT devices. To view examples of the types of configurations you can manage by using AWS AppConfig, see [Example configurations](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile.html#appconfig-creating-configuration-and-profile-examples).
21
+
For a high level overview of what AWS AppConfig is and how it works, please take a look here:
22
+
[What is AWS AppConfig?](https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html)
23
+
24
+
25
+
## Basic Hosted Configuration Use Case
26
+
27
+
> The main way most AWS AppConfig users utilize the service is through hosted configuration, which involves storing
28
+
> configuration data directly within AWS AppConfig.
content: appconfig.ConfigurationContent.fromInlineText('This is my configuration content.'),
42
+
});
43
+
```
44
+
45
+
This will create the application and environment for your configuration and then deploy your configuration to the
46
+
specified environment.
47
+
48
+
For more information about what these resources are: [Creating feature flags and free form configuration data in AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/creating-feature-flags-and-configuration-data.html).
49
+
50
+
For more information about deploying configuration: [Deploying feature flags and configuration data in AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/deploying-feature-flags.html)
51
+
52
+
____
53
+
54
+
For an in-depth walkthrough of specific resources and how to use them, please take a look at the following sections.
22
55
23
56
## Application
24
57
25
-
In AWS AppConfig, an application is simply an organizational construct like a folder. This organizational construct has a
26
-
relationship with some unit of executable code. For example, you could create an application called MyMobileApp to organize and
27
-
manage configuration data for a mobile application installed by your users. Configurations and environments are associated with
content: appconfig.ConfigurationContent.fromInlineYaml('MyConfig: This is my content.'),
195
+
});
196
+
```
197
+
198
+
*`fromInline` - Defines the hosted configuration from user-specified content types. The content type will be set as `application/octet-stream` unless specified.
content: appconfig.ConfigurationContent.fromInline('This is my configuration content.'),
206
+
});
207
+
```
117
208
118
209
AWS AppConfig supports the following types of configuration profiles.
119
210
120
-
***Feature flag**: Use a feature flag configuration to turn on new features that require a timely deployment, such as a product launch or announcement.
121
-
***Freeform**: Use a freeform configuration to carefully introduce changes to your application.
211
+
***[Feature flag](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile-feature-flags.html)**: Use a feature flag configuration to turn on new features that require a timely deployment, such as a product launch or announcement.
212
+
***[Freeform](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-free-form-configurations-creating.html)**: Use a freeform configuration to carefully introduce changes to your application.
122
213
123
214
A hosted configuration with type:
124
215
@@ -192,24 +283,18 @@ new appconfig.HostedConfiguration(this, 'MyHostedConfiguration', {
192
283
});
193
284
```
194
285
195
-
To deploy a configuration to an environment after initialization use the `deploy` method:
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-appconfig-alpha/test/integ.application.js.snapshot/appconfigapplicationDefaultTestDeployAssertD6537C40.assets.json
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-appconfig-alpha/test/integ.application.js.snapshot/aws-appconfig-application.assets.json
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-appconfig-alpha/test/integ.application.js.snapshot/aws-appconfig-application.template.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"Type": "AWS::AppConfig::Application",
5
5
"Properties": {
6
6
"Description": "This is my application for testing",
0 commit comments