Skip to content

Commit 99199b6

Browse files
authored
chore: upgrade to powertools v2 and change appconfig API (ran-isenberg#342)
1 parent bcf5a36 commit 99199b6

File tree

7 files changed

+75
-129
lines changed

7 files changed

+75
-129
lines changed

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ mkdocs-material = "*"
2424
mkdocs-git-revision-date-plugin = "*"
2525

2626
[packages]
27-
pydantic = {extras = ["email"],version = "*"}
2827
aws-lambda-powertools = "*"
28+
pydantic = "*"
29+
aws_xray_sdk = "*"
2930

3031
[requires]
3132
python_version = "3.9"

Pipfile.lock

Lines changed: 48 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cdk/my_service/service_stack/service_construct.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def _build_lambda_role(self) -> iam.Role:
3939
inline_policies={
4040
'dynamic_configuration':
4141
iam.PolicyDocument(statements=[
42-
iam.PolicyStatement(actions=['appconfig:GetConfiguration'], resources=['*'], effect=iam.Effect.ALLOW),
42+
iam.PolicyStatement(actions=['appconfig:GetLatestConfiguration', 'appconfig:StartConfigurationSession'], resources=['*'],
43+
effect=iam.Effect.ALLOW),
4344
]),
4445
},
4546
managed_policies=[

0 commit comments

Comments
 (0)