Skip to content

Commit

Permalink
fix: rest iam policy roles array, bump ext helper types version (aws-…
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett authored and akshbhu committed Nov 21, 2021
1 parent 48dada1 commit a08af8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"fs-extra": "^9.1.0"
},
"devDependencies": {
"@aws-amplify/cli-extensibility-helper": "^2.2.2",
"@aws-amplify/cli-extensibility-helper": "2.3.0-apiext3.0",
"@types/fs-extra": "^9.0.11",
"typescript": "^4.2.4"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"watch": "tsc -w"
},
"dependencies": {
"@aws-amplify/cli-extensibility-helper": "2.2.3-gql-ext1.0"
"@aws-amplify/cli-extensibility-helper": "2.3.0-apiext3.0"
},
"devDependencies": {
"typescript": "^4.2.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class AmplifyApigwResourceStack extends cdk.Stack implements AmplifyApigw
const iamPolicy = new iam.CfnPolicy(this, `${groupName}Group${alphanumericPathName}Policy`, {
policyDocument: this._craftPolicyDocument(apiResourceName, pathName, supportedOperations),
policyName,
roles: [cdk.Fn.join('-', [cdk.Fn.ref(authRoleLogicalId), 'UsersGroupRole'])],
roles: [cdk.Fn.join('-', [cdk.Fn.ref(authRoleLogicalId), `${groupName}GroupRole`])],
});
this.policies[pathName] = {
groups: {
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-cli-extensibility-helper/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { addCDKResourceDependency, AmplifyResourceProps } from '@aws-amplify/amplify-category-custom';
import { getProjectInfo } from './helpers/project-info';
export { AmplifyApiGraphQlResourceStackTemplate } from './types/api/amplify-api-resource-stack-types';
export { AmplifyApiRestResourceStackTemplate } from './types/api/types';
export { AmplifyApiRestResourceStackTemplate, ApigwPathPolicy } from './types/api/types';
export { AmplifyAuthCognitoStackTemplate, AmplifyUserPoolGroupStackTemplate } from './types/auth/types';
export { AmplifyRootStackTemplate } from './types/project/types';
export { AmplifyCDKL1, AmplifyDDBResourceTemplate, AmplifyS3ResourceTemplate } from './types/storage/types';
Expand Down

0 comments on commit a08af8a

Please sign in to comment.