Skip to content

yatzek/bosh-stemcells-ci

 
 

Repository files navigation

BOSH Stemcells

Pipeline Notes

$ fly -t production set-pipeline -c pipeline.yml  -p stemcell-new-dev-temp \
  --load-vars-from <( lpass show --notes "concourse:production pipeline:stemcell-new-dev-temp" )

AWS

Concourse will want to publish its artifacts. Create an IAM user with the required policy. Create buckets for stemcells, then give it a public-read policy...

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::bosh-core-stemcells-dev/*"
        },
        {
            "Sid": "",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::bosh-core-stemcells-dev"
        }
    ]
}

OS Images

When switching from the old pipeline to the new one, don't forget to...

  • update pipeline.yml and change the bucket from bosh-os-images-dev to whatever the public bucket should be
  • update the tasks YAML which is point to tasks in the directory of os-images
  • rename this directory from new

Pipeline Notes

$ fly -t production set-pipeline -p bosh:stemcells -c ci/pipeline.yml \
  --load-vars-from <(lpass show -G "concourse:production pipeline:os-images" --notes)

AWS

Concourse will want to publish its artifacts. Create an IAM user with the required policy. Create buckets for OS Images, then give it a public-read policy...

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
              "s3:PutObject",
              "s3:GetObjectAcl",
              "s3:GetObject",
              "s3:GetObjectVersionAcl",
              "s3:PutObjectAcl",
              "s3:GetObjectVersion"
            ],
            "Resource": "arn:aws:s3:::bosh-os-images/*"
        },
        {
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
              "s3:ListBucketVersions",
              "s3:ListBucket",
              "s3:GetBucketVersioning"
            ],
            "Resource": "arn:aws:s3:::bosh-os-images"
        }
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 93.6%
  • HCL 2.8%
  • Smarty 1.8%
  • Ruby 1.8%