{"_id":"@aligent/aws-cdk-pipeline-stack","_rev":"17-5ea07fedc0443530922ef07e1730ab9e","name":"@aligent/aws-cdk-pipeline-stack","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@aligent/aws-cdk-pipeline-stack","version":"0.1.0","license":"GPL-3.0-only","_id":"@aligent/aws-cdk-pipeline-stack@0.1.0","maintainers":[{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},{"name":"luke-denton-aligent","email":"luke.denton@aligent.com.au"},{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"vincent.cabrera","email":"vincent.cabrera@aligent.com.au"}],"homepage":"https://github.com/aligent/aws-cdk-pipeline-stack#readme","bugs":{"url":"https://github.com/aligent/aws-cdk-pipeline-stack/issues"},"dist":{"shasum":"43d392d56b7660befaabfb93c5ad2f47a9699978","tarball":"https://registry.npmjs.org/@aligent/aws-cdk-pipeline-stack/-/aws-cdk-pipeline-stack-0.1.0.tgz","fileCount":12,"integrity":"sha512-SG4Lq8nKJOHjJaJCXROwZ/DW2nJj812z9psMluXj/qe4JfKVoAbMz6sKJe623NaHQLpB5xJoqMZ5xG88vDBnBg==","signatures":[{"sig":"MEQCIFbrO01w9zNNczr5fQgzJ2GppzJPXoYzt2eAsY7ne5COAiBpRBLkK0MAJ27IDQgWynO8riLr3RSmDvne1hS3aTt27g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrDhqCRA9TVsSAnZWagAA87MP/R109Z5lDZM94AMKyPo7\nRKaHCehhc1jA9UXQTcQ2GKVwkbvcmmSNLaNfA4XukFhjb7jtcN4AX7bODD2j\nPPNE9HkzKt7Zz4o5zM7aNspw2/zjMmTzUHziHOeN3K6Ac4ulPwEsD/AVb161\n78jBHM41mzjO/0eBpfeFvrZRr3Hlz0TJBXUd7DD2cqVVNqJCznCPz68OkJ6d\n8jxw8nt0SeTxTQOYU7lZBkneqrj6UeYmGLExwP1ezHcy+PYHboihvzt4wTHC\nyrs25uGXw6RlNZDVe80G0rFyd/4L83+rHlg8Qu33CBd69S4yeCR9GEBw615q\nyzKuACpho+f+0U9yRzW1J344IhqURAoomC6oBtweYUspeUGmswLnszqOcpxp\noorMwBZ2APyhUrzMMqzu5+IZUujP6glmjurPvPRd6fGGHm0Zu6CfeafbZhI6\nBq812ghFcD/5hGZtdWHsNmtZRqmYlot9NVUvfAcJjvImOeRsmcCK1R6DfKjW\nC0DmboiGBfI8aAL4Dy9GBC+vwXdmBSjEZydRXLmpnjfyDG+T+4IsrdoMUcor\nptA+QWjra9MG+RKxub8a1PeLf0FphoRB5dun6FsjCXYvyB2+EvyWpb4u99HO\nyIx11QbhgOScMNBi5qx6i70h9lDLAQX3UUmjQztzysOOcu2sMUgls0i4tNjc\nxqRj\r\n=dC4p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"573e4125fe5bd55e5350cc3eac1ca3f62345c036","scripts":{"build":"tsc","prepublish":"tsc"},"_npmUser":{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},"deprecated":"This package has been deprecated and is no longer supported","repository":{"url":"git+https://github.com/aligent/aws-cdk-pipeline-stack.git","type":"git"},"_npmVersion":"6.14.12","description":"## Overview","directories":{},"_nodeVersion":"12.22.1","dependencies":{"@aws-cdk/core":"1.92.0","@aws-cdk/pipelines":"^1.92.0","source-map-support":"^0.5.16","@aws-cdk/aws-codepipeline":"^1.92.0","@aws-cdk/aws-codepipeline-actions":"^1.92.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","aws-cdk":"1.92.0","ts-jest":"^26.5.3","ts-node":"^9.0.0","typescript":"~3.9.7","@types/jest":"^26.0.10","@types/node":"10.17.27","@aws-cdk/assert":"1.92.0"},"_npmOperationalInternal":{"tmp":"tmp/aws-cdk-pipeline-stack_0.1.0_1621899370236_0.07973848372333125","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@aligent/aws-cdk-pipeline-stack","version":"0.1.1","license":"GPL-3.0-only","_id":"@aligent/aws-cdk-pipeline-stack@0.1.1","maintainers":[{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},{"name":"luke-denton-aligent","email":"luke.denton@aligent.com.au"},{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"vincent.cabrera","email":"vincent.cabrera@aligent.com.au"}],"homepage":"https://github.com/aligent/aws-cdk-pipeline-stack#readme","bugs":{"url":"https://github.com/aligent/aws-cdk-pipeline-stack/issues"},"dist":{"shasum":"b40619b6f6185503bfb310f7c26416fdf3018069","tarball":"https://registry.npmjs.org/@aligent/aws-cdk-pipeline-stack/-/aws-cdk-pipeline-stack-0.1.1.tgz","fileCount":12,"integrity":"sha512-7z0VIbzavmn+T6t5F6xha+fsl4dIiG5X6zx5cDnkXtRyNRaoWy7Wd8/RRoXEIpHA7A46PqXf5m7JnZyA9FNXww==","signatures":[{"sig":"MEYCIQC9+E6g9oZyAGj4epTqDpilteg+eDaMtKqXfXqAm94bwgIhAIHL64zGUlBHxKJNFUaMFzwcfI3QGIi8nEYPxlt9lQg9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguHIhCRA9TVsSAnZWagAAzFcP/2NBBRSUpmrG1QOMsXiM\nexUrJ9GhkqPJvVhSQe53NdRdRMAEEjbXuDYB+x8NgdzwIYj5vu81oKqjIad5\n3PcxoPuBfujR/AVsBr0vfGFe1NY4wENkUcmooLrJvnRHqSdxB4l9GwY3jv4g\neBuS7WOBfcWoTiHAxSqOB6tXO++1Kgrv5ZN3AMicM9dYqoEzFxJQmrd5tqvM\nehBEh2RB3Own//asLfC9UyPAE5w6LG1Z9GRCIafDqbqKXHCCYNnB1kmR/EQQ\noCjkoYo9eELAgQwBaQLTcnDM1VFprTJukqjG6/QbK5EnykUHs+Ab3gWaIBVA\nII53RDM1FbsUiAIRuDQOrYoyXzY3PXJbUcDpTt25VvCWTExHAEhwvX77uMXb\nSWU6Zaxy01I6SBnhpl3eL4iccKygeDWjjyoRGtlIPOXlrGCbfvreVqwCErMI\nULKffSQ4Oahx72LpF68McBJBXz4+ZLB/ea2IdyJVKLFYkYJ0MKJvxFUcqKNG\nrSFyHSeIgL5X3mR6Jkn/WelzZ9w3i2jYRJizIP0UvFZo2WfRldHsap5tl0J2\nBeSqhCJKkCELK3mMsVxtg4pRd40Fvvn0ZLU0W39ZT6481nrTdB1+Twe8DDgk\nucKj/apSwgTeMKCAQQOamlliWKGcTfF6z5X9WYEYo7urxPpdUdulL/QbWGkK\n4Dym\r\n=o9lO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"8a6d898343cbe64c80b603ce20b7fc1ae66fe69f","scripts":{"build":"tsc","prepublish":"tsc"},"_npmUser":{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},"deprecated":"This package has been deprecated and is no longer supported","repository":{"url":"git+https://github.com/aligent/aws-cdk-pipeline-stack.git","type":"git"},"_npmVersion":"6.14.12","description":"## Overview","directories":{},"_nodeVersion":"12.22.1","dependencies":{"@aws-cdk/core":"1.92.0","@aws-cdk/pipelines":"^1.92.0","source-map-support":"^0.5.16","@aws-cdk/aws-codepipeline":"^1.92.0","@aws-cdk/aws-codepipeline-actions":"^1.92.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","aws-cdk":"1.92.0","ts-jest":"^26.5.3","ts-node":"^9.0.0","typescript":"~3.9.7","@types/jest":"^26.0.10","@types/node":"10.17.27","@aws-cdk/assert":"1.92.0"},"_npmOperationalInternal":{"tmp":"tmp/aws-cdk-pipeline-stack_0.1.1_1622700576936_0.5270986992936837","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@aligent/aws-cdk-pipeline-stack","version":"0.1.2","license":"GPL-3.0-only","_id":"@aligent/aws-cdk-pipeline-stack@0.1.2","maintainers":[{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},{"name":"luke-denton-aligent","email":"luke.denton@aligent.com.au"},{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"vincent.cabrera","email":"vincent.cabrera@aligent.com.au"}],"homepage":"https://github.com/aligent/aws-cdk-pipeline-stack#readme","bugs":{"url":"https://github.com/aligent/aws-cdk-pipeline-stack/issues"},"dist":{"shasum":"a9efedf53f07b462a7cafa1c163ed20064bd6d11","tarball":"https://registry.npmjs.org/@aligent/aws-cdk-pipeline-stack/-/aws-cdk-pipeline-stack-0.1.2.tgz","fileCount":12,"integrity":"sha512-7xLPD8ntdRVqzB7eSG/E3y1H5GD5bgDJ+NUENSysurrRvIaIeq4D451WJw15EEgicXrhxC6TsV6xGlB+AYTZFQ==","signatures":[{"sig":"MEUCIQDx/rxv7GL3abd/9iCKw4ZP29Pr3RJOTwd1bAxHPF8yVgIgbBdv4qfB6HNzZW/Y7Sw348Pl51EFXC8q4ZPmpgvjN00=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguLpyCRA9TVsSAnZWagAALLQP/RchacYylde+/U2+skZE\nO29FwQJi3SGn7EmZD0BskkIRmWTfTn1ToUukgB4k4NDYfJx7ZvCCtDORbzO8\nT1sxPgdOnLXsSdTMmBS2+Z7hB8J2TEd6lI2lVbl6C6MNSdc9Ucguhr4aDQVo\ncniqsSsBkh1EVsB+HyA+HTgRyP9/sweyR15/rKwJW7sd2QGHX76emDXtg0O0\nOQa70yUjt0FB/w2bqZBk1mIvh6Teop6q7N5N0gZRO5h2Hpw5exE8j6Dy3Wdg\ncQuifmbsIzUbLEBOwasZv4nByEQs9PZ59UdyeOsJZJyIVJNG2ILQJ6fHBN/k\nW+GRZXbIVHtXTwl/curQ4RDyH2/4pVlNb7S7pMoSVksd0E7D00HoI6HkU4E2\nvwYXmVTb6XMWaoe1ihnIegKZkl5TUPa43rQJtgHrDIOeHrxDec2zlAlfXGK9\nh2T+9iL/XBE2kzf0NZNlj2NACxLv9Cwt6m2UlEA+UZbE0sFJVsbe9zM6Xi/2\nr670x0sjQW4kuvVnSYgVAbF/5DhSg37D1SYaLfOxzlllprYyvllfLBQuO6ad\n000/gjXJEsIOzlqRdbC8XIJ0AWV1dJrYhr+jOF5/+o6En3lZsh5V6s7ckCl3\nCLf4leYvAaOLGYqFwKn6xLntmFooDGZgkE2IWOgzBq7R89WZw7Us0QifUPmk\npquE\r\n=v0Ww\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"c2df6701942d774c5820065edf949927e1fc097b","scripts":{"build":"tsc","prepublish":"tsc"},"_npmUser":{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},"deprecated":"This package has been deprecated and is no longer supported","repository":{"url":"git+https://github.com/aligent/aws-cdk-pipeline-stack.git","type":"git"},"_npmVersion":"6.14.12","description":"## Overview","directories":{},"_nodeVersion":"12.22.1","dependencies":{"@aws-cdk/core":"1.92.0","@aws-cdk/pipelines":"^1.92.0","source-map-support":"^0.5.16","@aws-cdk/aws-codepipeline":"^1.92.0","@aws-cdk/aws-codepipeline-actions":"^1.92.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","aws-cdk":"1.92.0","ts-jest":"^26.5.3","ts-node":"^9.0.0","typescript":"~3.9.7","@types/jest":"^26.0.10","@types/node":"10.17.27","@aws-cdk/assert":"1.92.0"},"_npmOperationalInternal":{"tmp":"tmp/aws-cdk-pipeline-stack_0.1.2_1622719090042_0.03833438602122197","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@aligent/aws-cdk-pipeline-stack","version":"0.1.3","license":"GPL-3.0-only","_id":"@aligent/aws-cdk-pipeline-stack@0.1.3","maintainers":[{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},{"name":"luke-denton-aligent","email":"luke.denton@aligent.com.au"},{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"vincent.cabrera","email":"vincent.cabrera@aligent.com.au"}],"homepage":"https://github.com/aligent/aws-cdk-pipeline-stack#readme","bugs":{"url":"https://github.com/aligent/aws-cdk-pipeline-stack/issues"},"dist":{"shasum":"be26ee45951c207b6d548e2643f582ed170bde46","tarball":"https://registry.npmjs.org/@aligent/aws-cdk-pipeline-stack/-/aws-cdk-pipeline-stack-0.1.3.tgz","fileCount":12,"integrity":"sha512-EiAft+561Zisr4vYhe8k0PZg7tYHSW0kc7yQ4JbgR7gxV2m7bzczKH+xVxYI7AIZJT5WJOuBrlbTMzR3UWe+zQ==","signatures":[{"sig":"MEYCIQCF9v1dKld/xPxx22VHpZcuOR6X2+hhVixLQ6S2xSrDkwIhANB8x4ORVc+AK9oPcj25tBsbUkh8t7+1iWjMgO+x6Axg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguZRXCRA9TVsSAnZWagAAYWUP/iHvDzj+5+d1jQ3O4YXD\nw1OYZSrzMhPCQqJ77vjIH3a0MIUWOZjRnRzud6jHV6TBqJ/WNaKur6ycOtV7\nFbg0U5wVph7Iz1FN4SwOdVebVLwssUH0kmlgbEoVmZovbxYG2t5kZ66efYCc\nPwCUGBc3bhQmSqDl3GV0/YWqPa9Nb195Jvn9Uxny5jdLwtkDkT2Wc/Bj0UAK\n9O5kwkt9glC4mSIAVpdxv41mfJEZlABJUqUew3K94fBHcGyU+O/A9PQw9cYG\n9UHf3FU7X7AAD1hQlQ8pEB6aO9iHXru//vX0C3DM/4KbRdEBu8GFw6msxVBh\nMGNzUKCxG1CjvPI3MY3DYT0Y8zUBqRvBGSR4IgtkjM+yS6WU6iHjsUDshQSa\nprsBEJHZOU92zSJeTErzuYPBSYuOa0RBgOzYuNL0T6rRYM4lvcjdCpMOfrZA\nOFLfgRbgg4E/c9uQcbcg866iKQjNKwOO3xG00u7KUFI89v0NyaqFDZ2JhwwB\nr8J6katuHhLvNh9KGyP0VJ9Wf8X+zsWXGtg5bAlbUJyAVJiyS/cy8SfUlKnZ\nKzFuSjrO8iDvu0naPl5QWl8+3Qzsd91hKhNAIfzdSqEq6Axj1LPvzMMZQ+SF\nTIYi2CgaNlUWsBRPr01MzTqrC9s4n7aFMBQ+xTWno7W7excwtpWjMWA30nt7\nL60z\r\n=rr8E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"f057feaa8a886b75467e5e15a168b571d4afe07a","scripts":{"build":"tsc","prepublish":"tsc"},"_npmUser":{"name":"john.smith.aligent","email":"john.smith@aligent.com.au"},"deprecated":"This package has been deprecated and is no longer supported","repository":{"url":"git+https://github.com/aligent/aws-cdk-pipeline-stack.git","type":"git"},"_npmVersion":"6.14.12","description":"## Overview","directories":{},"_nodeVersion":"12.22.1","dependencies":{"@aws-cdk/core":"1.92.0","@aws-cdk/pipelines":"^1.92.0","source-map-support":"^0.5.16","@aws-cdk/aws-codepipeline":"^1.92.0","@aws-cdk/aws-codepipeline-actions":"^1.92.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.2","aws-cdk":"1.92.0","ts-jest":"^26.5.3","ts-node":"^9.0.0","typescript":"~3.9.7","@types/jest":"^26.0.10","@types/node":"10.17.27","@aws-cdk/assert":"1.92.0"},"_npmOperationalInternal":{"tmp":"tmp/aws-cdk-pipeline-stack_0.1.3_1622774871667_0.6851755204043544","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-05-24T23:36:09.907Z","modified":"2026-05-22T06:21:07.328Z","0.1.0":"2021-05-24T23:36:10.385Z","0.1.1":"2021-06-03T06:09:37.065Z","0.1.2":"2021-06-03T11:18:10.185Z","0.1.3":"2021-06-04T02:47:51.823Z"},"bugs":{"url":"https://github.com/aligent/aws-cdk-pipeline-stack/issues"},"license":"GPL-3.0-only","homepage":"https://github.com/aligent/aws-cdk-pipeline-stack#readme","repository":{"url":"git+https://github.com/aligent/aws-cdk-pipeline-stack.git","type":"git"},"description":"## Overview","maintainers":[{"email":"jarrod.swift@aligent.com.au","name":"jarrod.swift"},{"email":"devops+npm@aligent.com.au","name":"aligent-bot"},{"email":"tom.thorogood@aligent.com.au","name":"tom.thorogood"}],"readme":"# Aligent AWS Pipeline stack\n\n## Overview\n\nPipelineStack with Cross-account deployment\n\nThis stack configures an AWS CodePipeline application which will deploy an instance of another \"child\" CDK stack based on any changes to the configured repository/branch.\n\n## Multi AWS Account\nInstructions in this readme refer to two AWS accounts, The Pipeline account, which runs the AWS CodePipeline and the Target account where the \"child\" stack is deployed.\n\nWhile both stacks (Pipeline and Target) could be the same, and these instructions should work in such a case, we have chosen to separate these for security reasons.\n\n![Diagram](CdkPipelineCrossAccountDeploy.jpeg)\n\n1. Configure a CDK project on your local machine, run `cdk deploy` to create a CodePipeline in the pipeline acconut via CloudFormation.\n2. Push the project code to a new git repository/branch\n3. CodePipeline Source stage picks up the change in the repository/branch and initiate the pipeline\n4. CodePipeline Deploy stage initiates Target Account Cloudformation stack creation/update\n5. TargetAccount's CloudFormation creates/configures/updates stack resources\n\n\n## How to use: Creating a new PipelineStack project\n\n> **_NOTE:_** npm ver.7 will cause an issue a later stage hence ver.6 is required until this issue is resolved: https://github.com/npm/cli/issues/2610\n\nInstall cdk first (`npm install -g aws-cdk`, or [this instruction](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html)) and follow the steps described below.\n\n\n1. In order to have AWS Pipeline Account authorized to talk to the version control system, create *CodeStar Connection*. This is a one-off task between the two, though, hence reusable across multiple projects. [Connecting to BitBucket, for example](https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-create-bitbucket.html)\n\n2. Initialise a CDK project\n\n    $ npx cdk init app --language=typescript\n\n3. Bootstrap the Target Account to grant the Pipeline Account permission to create resources within in. This is per-region basis.\n\n        $ env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \\\n                --profile <TargetAccountProfile> \\\n                --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \\\n                --trust <ToolsAccountId> \\\n                aws://<TargetAccountId>/<region>\n\n4. Add this module to your project as a dependency\n\n        $ npm install @aligent/aws-cdk-pipeline-stack\n\n5. Create a CDK Typescript file which creates this stack. Please see `./sample/pipeline.ts.sample`. Ensure sure to fill in all parameters in `./sample/environments.ts.sample` \nIncluding:\n\n7. Run `npm install` and update `cdk.json`:\n\n    - `app`: replace `<project_name.ts>` with `pipeline.ts`.\n    - `context`: add `\"@aws-cdk/core:newStyleStackSynthesis\": true`\n\n8. Test by running `npx cdk synth` and `npx cdk ls`. For further testing and customisation, refer to the **Local development** section below. By now you are going to see two stacks per each environment; one for Pipeline deployment, the other for direct deployment. See Step 10 down below.\n\n9. Push the code to the relevant branch\n\n10. Deploy the stack, e.g. `npx cdk deploy <target-environment> --profile <ToolsAccountProfile>` to create the CodePipeline, followed by TargetAccount resource creation. \n\n## Local development\n[NPM link](https://docs.npmjs.com/cli/v7/commands/npm-link) can be used to develop the module locally.\n1. Pull this repository locally\n2. `cd` into this repository\n3. run `npm link`\n4. `cd` into the downstream repo (target project, etc) and run `npm link 'aws-pipeline-stack'`\nThe downstream repository should now include a symlink to this module. Allowing local changes to be tested before pushing.\n\n","readmeFilename":"README.md"}