Publishing to S3 from Teamcity

Teamcity Installation:

Follow the below steps to install the plugin for Teamcity to publish to S3.

  1. Download the Jetbrains S3 Uploader plugin (https://drive.google.com/drive/folders/0BxGdXmEjPnyPa2thM3FCdUh0SmM).
  2. Go to Administration > Plugins List
  3. Click the “Upload plugin zip” and upload the downloaded zip file
  4. The S3 Uploader will then be available as a Build Step.

AWS Configuration:

  1. First you should configure an IAM Profile with a minimum of the below settings for your S3 Bucket
  2. You should create a new IAM user with the new profile attached and make note of the ACCESSKEY and ACCESSKEYID (These will be used in your Teamcity Build Steps to deploy to S3).
  3. Credentials should be stored securely.
  {
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "VisualEditor0",
              "Effect": "Allow",
              "Action": [
                  "s3:ListBucket",
                  "s3:ListBucketVersions",
                  "s3:PutObject",
                  "s3:DeleteObject",
                  "s3:DeleteObjectVersion",
                  "s3:DeleteObjectVersionTagging",
                  "s3:DeleteObjectTagging"
              ],
              "Resource": [
                  "arn:aws:s3:::bucketNameHere",
                  "arn:aws:s3:::bucketNameHere/*"
              ]
          }
      ]
  }

Any comments or questions? Get in touch here or Email me at [email protected]