Skip to content
The source for Inception Pipelines
Shell Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
aws_seed-cli-parameters.json
aws_seed.json
aws_seed.yml
init.bat
init.sh
to-cfn-params.sh

README.md

Inception Pipeline

The source for the Inception Pipelines blog series!

  1. Seeds of Inception - Seeding your Account with an Inception Pipeline
  2. Seeds of Inception - Sprouting some website goodness
  3. Seeds of Inception - Sharing the website goodness
  4. Seeds of Inception - Seeding a forest
  5. Seeds of Inception - Access all accounts
  6. Seeds of Inception - Initiating the Seeding
  7. Seeds of Inception - Global CloudTrail

Notes

When you begin to develop aspects in their own pipelines, you may find there are many cloudformation scripts being used (and thus configuration files). Unfortunately, the format of parameter file read by Codepipeline differs to the format read by Cloudformation. Cloudformation parameter files can still be useful when you are developing new Cloudformation scripts to include in your pipeline.

We have included a simple filter script, to-cfn-params.sh that uses jq to transform from Codepipeline parameters to Cloudformation, allowing you to maintain one parameter file and generate the Cloudformation one on the fly.

Examples

Given the following Codepipeline parameter file

{
    "Parameters" : {
        "TemporaryRoleName: "roleProdAccountDevops",
        "KmsKeyArn" : "arn:aws:kms:eu-west-1:01234556789:key/abc000000000-1234-1234-1234"
   }
}

When we run pipe the file through the filter script

$ cat codepipeline-params.json | to-cfn-params.sh

Then we will see Cloudformation parameters output

[
  {
    "ParameterKey": "TemporaryRoleName",
    "ParameterValue": "roleProdAccountDevops"
  },
  {
    "ParameterKey": "KmsKeyArn",
    "ParameterValue": "arn:aws:kms:eu-west-1:01234556789:key/abc000000000-1234-1234-1234"
  }
]

So to write your existing parameter file to a new Cloudformation parameter file, you might call

$ to-cfn-params.sh < codepipeline-params.json > code-pipeline-params-cli.json
You can’t perform that action at this time.