AmplifyBackendDeployFullAccess
Last Modified
Mar 12, 2026
March 12, 2026 at 09:28 PM UTC
Version
v9
Total Versions
11
Created
Nov 14, 2024
Actions
36
Risk
MediumThe same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- Medium
Can take over other users or roles
Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.
- sts:AssumeRole: condition aws:ResourceAccount, on arn:aws:iam::*:role/cdk-*-deploy-role-*-*, arn:aws:iam::*:role/cdk-*-file-publishing-role-*-*, arn:aws:iam::*:role/cdk-*-image-publishing-role-*-*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
- Medium
Can take over existing resources that run as another role
Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- lambda:UpdateFunctionCode: condition aws:ResourceAccount, on arn:aws:lambda:*:*:function:amplify-*
- lambda:UpdateFunctionCode: condition aws:ResourceAccount, on arn:aws:lambda:*:*:function:amplify-*
- lambda:InvokeFunction: condition aws:ResourceAccount, on arn:aws:lambda:*:*:function:amplify-*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CDKPreDeploy",
"Effect": "Allow",
"Action": [
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:GetTemplate",
"cloudformation:ListStackResources",
"cloudformation:GetTemplateSummary",
"cloudformation:DeleteStack"
],
"Resource": [
"arn:aws:cloudformation:*:*:stack/amplify-*",
"arn:aws:cloudformation:*:*:stack/CDKToolkit/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AmplifyMetadata",
"Effect": "Allow",
"Action": [
"amplify:ListApps",
"cloudformation:ListStacks",
"ssm:DescribeParameters",
"appsync:GetIntrospectionSchema",
"amplify:GetBackendEnvironment"
],
"Resource": [
"*"
]
},
{
"Sid": "AmplifyHotSwappableResources",
"Effect": "Allow",
"Action": [
"appsync:GetSchemaCreationStatus",
"appsync:StartSchemaCreation",
"appsync:UpdateResolver",
"appsync:ListFunctions",
"appsync:UpdateFunction",
"appsync:UpdateApiKey"
],
"Resource": [
"*"
]
},
{
"Sid": "AmplifyHotSwappableFunctionResource",
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction",
"lambda:UpdateFunctionCode",
"lambda:GetFunction",
"lambda:UpdateFunctionConfiguration"
],
"Resource": [
"arn:aws:lambda:*:*:function:amplify-*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AmplifySandboxLambdaLogsStreamingListTags",
"Effect": "Allow",
"Action": [
"lambda:ListTags"
],
"Resource": [
"arn:aws:lambda:*:*:function:amplify-*"
]
},
{
"Sid": "AmplifySandboxLambdaLogsStreamingFilterLogEvents",
"Effect": "Allow",
"Action": [
"logs:FilterLogEvents"
],
"Resource": [
"arn:aws:logs:*:*:log-group:/aws/lambda/amplify-*:*",
"arn:aws:logs:*:*:log-group:amplify-*:*"
]
},
{
"Sid": "AmplifySchema",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::*amplify*",
"arn:aws:s3:::cdk-*-assets-*-*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "CDKDeploy",
"Effect": "Allow",
"Action": [
"sts:AssumeRole"
],
"Resource": [
"arn:aws:iam::*:role/cdk-*-deploy-role-*-*",
"arn:aws:iam::*:role/cdk-*-file-publishing-role-*-*",
"arn:aws:iam::*:role/cdk-*-image-publishing-role-*-*",
"arn:aws:iam::*:role/cdk-*-lookup-role-*-*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AmplifySSM",
"Effect": "Allow",
"Action": [
"ssm:GetParametersByPath",
"ssm:GetParameters",
"ssm:GetParameter"
],
"Resource": [
"arn:aws:ssm:*:*:parameter/amplify/*",
"arn:aws:ssm:*:*:parameter/cdk-bootstrap/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AmplifyModifySSMParam",
"Effect": "Allow",
"Action": [
"ssm:PutParameter",
"ssm:DeleteParameter",
"ssm:DeleteParameters"
],
"Resource": "arn:aws:ssm:*:*:parameter/amplify/*",
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AmplifyDiscoverRDSVpcConfig",
"Effect": "Allow",
"Action": [
"rds:DescribeDBProxies",
"rds:DescribeDBInstances",
"rds:DescribeDBClusters",
"ec2:DescribeSubnets",
"rds:DescribeDBSubnetGroups"
],
"Resource": [
"arn:aws:rds:*:*:db:*",
"arn:aws:rds:*:*:cluster:*",
"arn:aws:rds:*:*:db-proxy:*",
"arn:aws:rds:*:*:subgrp:*",
"arn:aws:ec2:*:*:subnet/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
}
]
},
"VersionId": "v9",
"IsDefaultVersion": true,
"CreateDate": "2024-11-14T19:09:39+00:00"
}
}Version History (14 recorded)
Raw historyscope changed, no action added or removed
Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 14, 2024
19d93bdUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Jul 18, 2024
2eed8b8Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 31, 2024
78441c3Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 17, 2024
23b842eUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 5, 2024
1770b5dUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Jan 2, 2024
513cbaaUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Jan 2, 2024
c5d5e8cUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 18, 2023
0245e64Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 6, 2023
221efecUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 6, 2023
9776da8Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Oct 6, 2023
5ad0462