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: docs/upgrade.md
+7
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ Changes at a glance:
13
13
* The API for **event handler's `Response`** has minor changes to support multi value headers and cookies.
14
14
* The **legacy SQS batch processor** was removed.
15
15
* The **Idempotency key** format changed slightly, invalidating all the existing cached results.
16
+
* The **Feature Flags and AppConfig Parameter utility** API calls have changed and you must update your IAM permissions.
16
17
17
18
???+ important
18
19
Powertools for Python v2 drops suport for Python 3.6, following the Python 3.6 End-Of-Life (EOL) reached on December 23, 2021.
@@ -154,3 +155,9 @@ Prior to this change, the Idempotency key was generated using only the caller fu
154
155
After this change, the key is generated using the `module name` + `qualified functionname` + `idempotency key` (e.g: `app.classExample.function#app.handler#282e83393862a613b612c00283fef4c8`).
155
156
156
157
Using qualified names prevents distinct functions with the same name to contend for the same Idempotency key.
158
+
159
+
## Feature Flags and AppConfig Parameter utility
160
+
161
+
AWS AppConfig deprecated the current API (GetConfiguration) - [more details here](https://github.com/awslabs/aws-lambda-powertools-python/issues/1506#issuecomment-1266645884).
162
+
163
+
You must update your IAM permissions to allow `appconfig:GetLatestConfiguration` and `appconfig:StartConfigurationSession`. There are no code changes required.
Copy file name to clipboardExpand all lines: docs/utilities/feature_flags.md
+7-4
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ title: Feature flags
3
3
description: Utility
4
4
---
5
5
6
-
???+ note
7
-
This is currently in Beta, as we might change Store parameters in the next release.
8
-
9
6
The feature flags utility provides a simple rule engine to define when one or multiple features should be enabled depending on the input.
10
7
8
+
???+ info
9
+
We currently only support AppConfig using [freeform configuration profile](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile.html#appconfig-creating-configuration-and-profile-free-form-configurations).
10
+
11
11
## Terminology
12
12
13
13
Feature flags are used to modify behaviour without changing the application's code. These flags can be **static** or **dynamic**.
@@ -28,6 +28,9 @@ If you want to learn more about feature flags, their variations and trade-offs,
28
28
*[AWS Lambda Feature Toggles Made Simple - Ran Isenberg](https://isenberg-ran.medium.com/aws-lambda-feature-toggles-made-simple-580b0c444233)
29
29
*[Feature Flags Getting Started - CloudBees](https://www.cloudbees.com/blog/ultimate-feature-flag-guide)
30
30
31
+
???+ note
32
+
AWS AppConfig requires two API calls to fetch configuration for the first time. You can improve latency by consolidating your feature settings in a single [Configuration](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile.html).
33
+
31
34
## Key features
32
35
33
36
* Define simple feature flags to dynamically decide when to enable a feature
@@ -38,7 +41,7 @@ If you want to learn more about feature flags, their variations and trade-offs,
38
41
39
42
### IAM Permissions
40
43
41
-
Your Lambda function must have `appconfig:GetConfiguration` IAM permission in order to fetch configuration from AWS AppConfig.
44
+
Your Lambda function IAM Role must have `appconfig:GetLatestConfiguration` and `appconfig:StartConfigurationSession` IAM permissions before using this feature.
0 commit comments