0.0.1 • Published 2 years ago

@aligent/serverless-access-roles-generator v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Serverless Access Roles Generator

A Serverless framework plugin for:

  • Generate access roles for exported services (generated by serverless-export-resources plugin).
  • Collect and export the result to a specific file.

Serverless configuration

The plugin is configured within the serverless.yaml by providing configuration values as the example below

custom:
  accessRolesGenerator:
    principalAccountId: principal_aws_account_id
    principalRoleName: principal_role_name
    externalId: ${self:service}-${self:provider.stage}

Variables

VariableUsage
principalAccountIdPrincipal Account Id that is used to generate access role.
principalRoleNamePrincipal Role Name that is used to generate access role.
externalIdA string to identify the app. Can be a random string.
exportPrefixA string to filter the exported services. Default to aser. If provided, make sure it match the configuration in serverless-export-resources plugin
outDirDestination folder for exporting services' arn, description, and role. Default to dist/data
outFilenameName of the file that services will be exported to. Default to service-outputs.json

References:

  • For more information about principal account & role name, check this AWS document
  • More information about externalId, check this AWS document
0.0.1

2 years ago