serverless-plugin-module-registry 1.0.11-alpha.0 → 1.0.11-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -18999,12 +18999,13 @@ var ServerlessModuleRegistryPlugin = class {
18999
18999
  };
19000
19000
  });
19001
19001
  const policyResourceName = `${this.toPascalCase(moduleName)}AbacPolicy`;
19002
- const policyName = `${this.configManager.config.policyPrefix}-${moduleName}-${region}-abac`;
19002
+ const policyPrefix = `${this.configManager.config.policyPrefix}`;
19003
+ const policyName = `${policyPrefix}-${region}-abac`;
19003
19004
  policyResources[policyResourceName] = {
19004
19005
  Type: "AWS::IAM::ManagedPolicy",
19005
19006
  Properties: {
19006
19007
  ManagedPolicyName: policyName,
19007
- Description: `${this.configManager.config.policyPrefix}-${moduleName}-${region}-abac`,
19008
+ Description: `${policyPrefix}-${region}-abac`,
19008
19009
  PolicyDocument: {
19009
19010
  Version: "2012-10-17",
19010
19011
  Statement: statements.map((statement) => ({