File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/integration-tests/src/test-project-setup Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ class SeedTestProject extends TestProjectBase {
128
128
env : environment ,
129
129
}
130
130
) ;
131
+
132
+ const startingInd = seedPolicyProcess . stdout . indexOf ( '{' ) ;
133
+ const cleanedPolicyString = seedPolicyProcess . stdout . slice ( startingInd ) ;
134
+ console . log ( 'cleaned:' ) ;
135
+ console . log ( cleanedPolicyString ) ;
136
+ console . log ( 'original:' ) ;
131
137
console . log ( seedPolicyProcess . stdout ) ;
132
138
133
139
const clientConfig = await generateClientConfig ( backendIdentifier , '1.3' ) ;
@@ -140,7 +146,7 @@ class SeedTestProject extends TestProjectBase {
140
146
new AssumeRoleCommand ( {
141
147
RoleArn : seedRoleArn ,
142
148
RoleSessionName : `seedSession` ,
143
- Policy : JSON . stringify ( JSON . parse ( seedPolicyProcess . stdout ) ) ,
149
+ Policy : JSON . stringify ( JSON . parse ( cleanedPolicyString ) ) ,
144
150
PolicyArns : [
145
151
{
146
152
arn : 'arn:aws:iam::aws:policy/service-role/AmplifyBackendDeployFullAccess' ,
You can’t perform that action at this time.
0 commit comments