Resources/AWS/Vault/plasterManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<plasterManifest schemaVersion="1.1" templateType="Project" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1"> <metadata> <name>AWSCBVaultExtension</name> <id>58d9f168-a786-43e6-8b79-0766ded4fd22</id> <version>0.12.1</version> <title>Catesta - SecretManagement extension vault module template for AWS CodeBuild</title> <description>Scaffolds a new PowerShell SecretManagement extension vault module project intended for CI/CD workflow using AWS CodeBuild</description> <author>Jake Morrison</author> <tags>PowerShell,Template,SecretManagement,VaultExtension,Secret,module,CodeBuild,AWS</tags> </metadata> <parameters> <parameter name='VAULT' type='text' prompt='VAULT'/> <parameter name='ModuleName' type='text' prompt='Enter the name of the extension vault module. (It is a community best practice that vault project names start with: SecretManagement. Example: SecretManagement.MyVault)'/> <parameter name='Description' type='text' prompt='Enter a description for the extension vault module'/> <parameter name='Version' type='text' prompt='Enter the version number of the extension vault module' default='0.0.1'/> <parameter name='FN' type='user-fullname' store='text' prompt='Enter your full name'/> <parameter name='Changelog' type='choice' default='0' store='text' prompt='Would you like to generate a Changelog file?'> <choice label='&Changelog' help="Adds a Changelog file." value="CHANGELOG"/> <choice label='&None' help="Does not add a Changelog file." value="NOCHANGELOG"/> </parameter> <parameter name='RepoType' type='choice' default='0' store='text' prompt='Where will this project be hosted?'> <choice label='&GitHub ' help="Hosted on GitHub." value="GITHUB"/> <choice label='&AWS CodeCommit' help="Hosted on AWS CodeCommit." value="CC"/> </parameter> <parameter name='License' type='choice' default='0' store='text' prompt='Select a License for your module. (Help deciding: https://choosealicense.com/)'> <choice label='&MIT' help='Adds a MIT License file.' value='MIT'/> <choice label='&Apache' help='Adds an Apache License file.' value="Apache"/> <choice label='&GNU' help='Adds a GNU GENERAL PUBLIC LICENSE file.' value="GNU"/> <choice label='&ISC' help='Adds an ISC License file.' value="ISC"/> <choice label='&None' help='Does not add a License file.' value='None'/> </parameter> <parameter name='COC' type='choice' default='0' store='text' prompt='Would you like to generate a Code of Conduct file?'> <choice label='&conduct' help="Adds a Code of Conduct file." value="CONDUCT"/> <choice label='&None' help="Does not add a Changelog file." value="NOCONDUCT"/> </parameter> <parameter name='Contribute' type='choice' default='0' store='text' prompt='Would you like to generate a Contributing guidelines file?'> <choice label='&Contribute' help="Adds a Contributing file." value="CONTRIBUTING"/> <choice label='&None' help="Does not add a Contributing file." value="NOCONTRIBUTING"/> </parameter> <parameter name='CodingStyle' type='choice' default='0' store='text' prompt='Would you like to specify a coding style for the project?'> <choice label='&Stroustrup' help="Sets Stroustrup as the preferred coding style." value="Stroustrup"/> <choice label='&OTBS' help="Sets OTBS as the preferred coding style." value="OTBS"/> <choice label='&Allman' help="Sets Allman as the preferred coding style." value="Allman"/> <choice label='&None' help="No coding style is set for the project." value="None"/> </parameter> <parameter name='S3Bucket' type='text' prompt='Enter S3 bucket name to download needed PS modules from S3 location. Leave blank to DL modules from PSGallery.' default='PSGallery'/> <parameter name='Options' type='multichoice' default='0' store='text' prompt='Select desired buildpsec file options?'> <choice label='&Windows - PowerShell' help="Adds a powershell focused buildspec.yml for Windows CodeBuild." value="ps"/> <choice label='&Core (Windows)- pwsh' help="Adds a pwsh focused buildspec.yml for Windows CodeBuild." value="pwshcore"/> <choice label='&Linux - pwsh' help="Adds a pwsh focused buildspec.yml for Linux CodeBuild." value="pwsh"/> <choice label='&None' help="Does not add a buildspec file." value="None"/> </parameter> <parameter name='Pester' type='choice' default='0' store='text' prompt='Which version of Pester would you like to use?'> <choice label='&5' help="Pester version 5" value="5"/> <choice label='&4' help="Pester version 4" value="4"/> </parameter> </parameters> <content> <message> Scaffolding your SecretManagement extension vault module for AWS CodeBuild... </message> <file source='' destination='docs'/> <file source='' destination='media'/> <file source='' destination='src'/> <file source='' destination='src\Archive'/> <file source='' destination='src\Artifacts'/> <file source='' destination='src\Tests'/> <file source='' destination='src\Tests\Infrastructure'/> <file source='' destination='src\Tests\Unit'/> <file source='' destination='src\${PLASTER_PARAM_ModuleName}'/> <templateFile source='..\..\editor\VSCode\tasks.json' destination='.vscode\tasks.json' /> <file source='..\..\editor\VSCode\extensions.json' destination='.vscode\extensions.json' /> <templateFile source='..\..\editor\VSCode\settings.json' destination='.vscode\settings.json' /> <templateFile condition="$PLASTER_PARAM_Pester -eq '4'" source='..\..\Vault\src\Tests\v4\Unit\PSVault-Module.Tests.ps1' destination='src\Tests\Unit\${PLASTER_PARAM_ModuleName}-Module.Tests.ps1' /> <templateFile condition="$PLASTER_PARAM_Pester -eq '4'" source='..\..\Vault\src\Tests\v4\Unit\ExportedFunctions.Tests.ps1' destination='src\Tests\Unit\ExportedFunctions.Tests.ps1' /> <templateFile condition="$PLASTER_PARAM_Pester -eq '4'" source='..\..\Vault\src\Tests\v4\Unit\Module-Function.Tests.ps1' destination='src\Tests\Unit\${PLASTER_PARAM_ModuleName}-Function.Tests.ps1' /> <templateFile condition="$PLASTER_PARAM_Pester -eq '5'" source='..\..\Vault\src\Tests\v5\Unit\PSVault-Module.Tests.ps1' destination='src\Tests\Unit\${PLASTER_PARAM_ModuleName}-Module.Tests.ps1' /> <templateFile condition="$PLASTER_PARAM_Pester -eq '5'" source='..\..\Vault\src\Tests\v5\Unit\ExportedFunctions.Tests.ps1' destination='src\Tests\Unit\ExportedFunctions.Tests.ps1' /> <templateFile condition="$PLASTER_PARAM_Pester -eq '5'" source='..\..\Vault\src\Tests\v5\Unit\Module-Function.Tests.ps1' destination='src\Tests\Unit\${PLASTER_PARAM_ModuleName}-Function.Tests.ps1' /> <templateFile source='..\..\Vault\src\PSVault\PSVault.Extension\PSVault.Extension.psd1' destination='src\${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}.Extension\${PLASTER_PARAM_ModuleName}.Extension.psd1' /> <file source='..\..\Vault\src\PSVault\PSVault.Extension\PSVault.Extension.psm1' destination='src\${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}.Extension\${PLASTER_PARAM_ModuleName}.Extension.psm1' /> <templateFile source='..\..\Vault\src\PSVault.build.ps1' destination='src\${PLASTER_PARAM_ModuleName}.build.ps1'/> <file source='..\..\Vault\src\PSVault.Settings.ps1' destination='src\${PLASTER_PARAM_ModuleName}.Settings.ps1'/> <file source='..\..\Vault\src\PSScriptAnalyzerSettings.psd1' destination='src\PSScriptAnalyzerSettings.psd1'/> <templateFile source='..\..\Vault\src\PSVault\PSVault.psm1' destination='src\${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}.psm1'/> <file source='..\..\GitHubFiles\agitignore' destination='.gitignore' /> <templateFile condition="$PLASTER_PARAM_Changelog -eq 'CHANGELOG'" source='..\..\GitHubFiles\CHANGELOG.md' destination='.github\CHANGELOG.md' /> <templateFile condition="$PLASTER_PARAM_License -eq 'MIT'" source='..\..\GitHubFiles\MITLICENSE' destination='LICENSE' /> <templateFile condition="$PLASTER_PARAM_License -eq 'Apache'" source='..\..\GitHubFiles\APACHELICENSE' destination='LICENSE' /> <templateFile condition="$PLASTER_PARAM_License -eq 'GNU'" source='..\..\GitHubFiles\GNULICENSE' destination='LICENSE' /> <templateFile condition="$PLASTER_PARAM_License -eq 'ISC'" source='..\..\GitHubFiles\ISCLICENSE' destination='LICENSE' /> <file condition="$PLASTER_PARAM_COC -eq 'CONDUCT'" source='..\..\GitHubFiles\CODE_OF_CONDUCT.md' destination='.github\CODE_OF_CONDUCT.md' /> <templateFile condition="$PLASTER_PARAM_Contribute -eq 'CONTRIBUTING'" source='..\..\GitHubFiles\CONTRIBUTING.md' destination='.github\CONTRIBUTING.md' /> <file condition="$PLASTER_PARAM_RepoType -eq 'GITHUB'" source='..\..\GitHubFiles\PULL_REQUEST_TEMPLATE.md' destination='.github\PULL_REQUEST_TEMPLATE.md'/> <file condition="$PLASTER_PARAM_RepoType -eq 'GITHUB'" source='..\..\GitHubFiles\ISSUE_TEMPLATE\bug-report.md' destination='.github\ISSUE_TEMPLATE\bug-report.md'/> <file condition="$PLASTER_PARAM_RepoType -eq 'GITHUB'" source='..\..\GitHubFiles\ISSUE_TEMPLATE\feature_request.md' destination='.github\ISSUE_TEMPLATE\feature_request.md'/> <file source='..\configure_aws_credential.ps1' destination='configure_aws_credential.ps1'/> <file source='..\CloudFormation\S3BucketsForPowerShellDevelopment.yml' destination='CloudFormation\S3BucketsForPowerShellDevelopment.yml'/> <templateFile condition="$PLASTER_PARAM_Options -eq 'ps'" source='..\buildspec_powershell_windows.yml' destination='buildspec_powershell_windows.yml' /> <templateFile condition="$PLASTER_PARAM_Options -eq 'pwshcore'" source='..\buildspec_pwsh_windows.yml' destination='buildspec_pwsh_windows.yml' /> <templateFile condition="$PLASTER_PARAM_Options -eq 'pwsh'" source='..\buildspec_pwsh_linux.yml' destination='buildspec_pwsh_linux.yml' /> <templateFile source='..\install_modules.ps1' destination='install_modules.ps1'/> <templateFile condition="$PLASTER_PARAM_RepoType -eq 'GITHUB'" source='..\CloudFormation\PowerShellCodeBuildGit.yml' destination='CloudFormation\PowerShellCodeBuildGit.yml'/> <templateFile condition="$PLASTER_PARAM_RepoType -eq 'CC'" source='..\CloudFormation\PowerShellCodeBuildCC.yml' destination='CloudFormation\PowerShellCodeBuildCC.yml'/> <newModuleManifest destination='src\${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}.psd1' moduleVersion='$PLASTER_PARAM_Version' encoding='UTF8-NoBOM' openInEditor="true" author='$PLASTER_PARAM_FN' description='$PLASTER_PARAM_description' nestedModules='./${PLASTER_PARAM_ModuleName}.Extension' /> <requireModule condition="$PLASTER_PARAM_Pester -eq '4'" name="Pester" minimumVersion="4.7.2" message="Without Pester, you will not be able to run the provided Pester test to validate your module manifest file.`nWithout version 4.5.0, VS Code will not display Pester warnings and errors in the Problems panel."/> <requireModule condition="$PLASTER_PARAM_Pester -eq '5'" name="Pester" minimumVersion="5.2.2" message="Without Pester, you will not be able to run the provided Pester test to validate your module manifest file."/> <requireModule name="InvokeBuild" minimumVersion="5.8.0" message="Without InvokeBuild, you will not be able to run local builds."/> <requireModule name="platyPS" requiredVersion ="0.12.0" message="This template requires platyPS v0.12.0 module to properly generate help."/> <requireModule name="Microsoft.PowerShell.SecretManagement" minimumVersion ="1.0.0" message="Without the PowerShell SecretManagement you will not be able to properly test your extension."/> <message> Your new SecretManagement extension vault module project '$PLASTER_PARAM_ModuleName' has been created. </message> <message> Several Pester tests have been created to validate various components of the module. Add additional tests to the test directory. You can run the Pester tests in your project by executing the 'test' task. Press Ctrl+P, then type 'task test'. </message> <message> CloudFormation files have been generated for this project. You can find these in the CloudFormation folder. You can login to your AWS account and utilize these file to quickly create a stack for your project build. More information: https://github.com/techthoughts2/Catesta/blob/master/docs/Catesta-AWS.md </message> <message> Read more about SecretManagement extension vault module: https://github.com/techthoughts2/Catesta/blob/master/docs/Catesta-Vault-Extension.md </message> </content> </plasterManifest> |