Skip to main content
1 min read

upload-resources

Important

You will need a StackGen Admin or DevOps access to run this command.

Resource Upload

The stackgen upload command uploads custom modules and security rules through the CLI. Use stackgen policies for resource restriction policies.

Usage​

stackgen upload [command]

Flags​

FlagDescription
-h, --helpHelp for upload.

See Global flags for --interactive, --log, --output, --project, --workspace, and --stackgen-home.

Subcommands​

The upload command group includes these subcommands:

custom-modules​

Upload custom modules from a Git repository or a local Terraform directory (--dir) for use across your organization (DevOps role).

security-rules​

Upload custom security and compliance rules from a JSON file (Admin or DevOps role).

Resource restriction policies​

Use stackgen policies resource-restriction to list or upload resource restriction policies.

note

stackgen upload resource-restriction-policy is deprecated. Prefer stackgen policies resource-restriction upload.

Commands no longer supported under stackgen upload​

These former upload targets are not available as stackgen upload subcommands:

  • aws-iam-permissions
  • custom-cloud-migration-mappings
  • resource-iam-restriction-policy
  • resource-override-policy
  • resource-pack-policy

Do not use those command paths. Use the product UI or the supported upload / policies commands above.